Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer/updater to fetch binary packages (from GitHub) #41

Open
15 tasks
abitrolly opened this issue Nov 8, 2020 · 2 comments
Open
15 tasks

Installer/updater to fetch binary packages (from GitHub) #41

abitrolly opened this issue Nov 8, 2020 · 2 comments

Comments

@abitrolly
Copy link
Member

There should be a better way to install/update verified binaries from GitHub than copy/pasting this shell lines - https://github.com/yakshaveinc/linux/blob/18273d092bee52cfd51551d60281e43b637381ee/docops/CHEATSHEET.md

It can be fixed by a tool with some query logic. Let's name it instabin.

  • admin story - sudo instabin terraform - should make /usr/local/bin/terraform available
    • discover where terraform binary is
      • use (prior) knowledge provided by user
      • lookup
        • own user maintained database
        • existing packages databases
        • google
      • extract location of GitHub repo or package with the binary
        • download the package
        • extract binary
        • symlink to ~/bin
        • record data - where the repo is, what is the repo, etc.

Existing solutions

@abitrolly
Copy link
Member Author

abitrolly commented Nov 8, 2020

@abitrolly
Copy link
Member Author

Howebrew installation.

...
==> This script will install:
/home/anatoli/.linuxbrew/bin/brew
/home/anatoli/.linuxbrew/share/doc/homebrew
/home/anatoli/.linuxbrew/share/man/man1/brew.1
/home/anatoli/.linuxbrew/share/zsh/site-functions/_brew
/home/anatoli/.linuxbrew/etc/bash_completion.d/brew
/home/anatoli/.linuxbrew/Homebrew
==> The following new directories will be created:
/home/anatoli/.linuxbrew/bin
/home/anatoli/.linuxbrew/etc
/home/anatoli/.linuxbrew/include
/home/anatoli/.linuxbrew/lib
/home/anatoli/.linuxbrew/sbin
/home/anatoli/.linuxbrew/share
/home/anatoli/.linuxbrew/var
/home/anatoli/.linuxbrew/opt
/home/anatoli/.linuxbrew/share/zsh
/home/anatoli/.linuxbrew/share/zsh/site-functions
/home/anatoli/.linuxbrew/var/homebrew
/home/anatoli/.linuxbrew/var/homebrew/linked
/home/anatoli/.linuxbrew/Cellar
/home/anatoli/.linuxbrew/Caskroom
/home/anatoli/.linuxbrew/Homebrew
/home/anatoli/.linuxbrew/Frameworks
...
Warning: /home/anatoli/.linuxbrew/bin is not in your PATH.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).
...
$ du -hs ~/.linuxbrew 
508M	/home/anatoli/.linuxbrew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant