Homebrew is a great way to get open source software installed onto your MacOS system. Major version upgrade just got released: homebrew 2.0.0.
The biggest feature with Homebrew 2.0.0 is Linux support, so it's no longer just an MacOS package manager. This also means you can use brew on Linux WSL on Windows 10, pretty cool!
Installation is very simple, as always. Here's the install session from my Debian 9 VM.
NOTE: there are some errors like missing sudo and gcc, that's because it's a brand new Debian 9 install.
greys@debian9:~$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)" sh: 4: eval: sudo: not found ==> Installing Ruby to /home/greys/.linuxbrew/Homebrew/Library/Homebrew/vendor % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 26.9M 100 26.9M 0 0 9625k 0 0:00:02 0:00:02 --:--:-- 10.5M ==> Installing successful ==> /home/greys/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-linux] ==> Add Ruby to your PATH by running: PATH=/home/greys/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin:$PATH ==> Select the Linuxbrew installation directory - Enter your password to install to /home/linuxbrew/.linuxbrew (recommended) - Press Control-D to install to /home/greys/.linuxbrew - Press Control-C to cancel installation ==> This script will install: /home/greys/.linuxbrew/bin/brew /home/greys/.linuxbrew/share/doc/homebrew /home/greys/.linuxbrew/share/man/man1/brew.1 /home/greys/.linuxbrew/share/zsh/site-functions/_brew /home/greys/.linuxbrew/etc/bash_completion.d/brew /home/greys/.cache/Homebrew/ /home/greys/.linuxbrew/Homebrew ==> The following new directories will be created: /home/greys/.linuxbrew/bin /home/greys/.linuxbrew/etc /home/greys/.linuxbrew/include /home/greys/.linuxbrew/lib /home/greys/.linuxbrew/sbin /home/greys/.linuxbrew/share /home/greys/.linuxbrew/var /home/greys/.linuxbrew/opt /home/greys/.linuxbrew/share/zsh /home/greys/.linuxbrew/share/zsh/site-functions /home/greys/.linuxbrew/Cellar /home/greys/.linuxbrew/Caskroom /home/greys/.linuxbrew/Frameworks Press RETURN to continue or any other key to abort ==> /bin/mkdir -p /home/greys/.linuxbrew/bin /home/greys/.linuxbrew/etc /home/greys/.linuxbrew/include /home/greys/.linuxbrew/lib /home/greys/.linuxbrew/sbin /home/greys/.linuxbrew/share /home/greys/.linuxbrew/var /home/greys/.linuxbrew/opt /home/greys/.linuxbrew/share/zsh /home/greys/.linuxbrew/share/zsh/site-functions /home/greys/.linuxbrew/Cellar /home/greys/.linuxbrew/Caskroom /home/greys/.linuxbrew/Frameworks ==> /bin/chmod g+rwx /home/greys/.linuxbrew/bin /home/greys/.linuxbrew/etc /home/greys/.linuxbrew/include /home/greys/.linuxbrew/lib /home/greys/.linuxbrew/sbin /home/greys/.linuxbrew/share /home/greys/.linuxbrew/var /home/greys/.linuxbrew/opt /home/greys/.linuxbrew/share/zsh /home/greys/.linuxbrew/share/zsh/site-functions /home/greys/.linuxbrew/Cellar /home/greys/.linuxbrew/Caskroom /home/greys/.linuxbrew/Frameworks ==> /bin/chmod 755 /home/greys/.linuxbrew/share/zsh /home/greys/.linuxbrew/share/zsh/site-functions ==> /bin/chown greys /home/greys/.linuxbrew/bin /home/greys/.linuxbrew/etc /home/greys/.linuxbrew/include /home/greys/.linuxbrew/lib /home/greys/.linuxbrew/sbin /home/greys/.linuxbrew/share /home/greys/.linuxbrew/var /home/greys/.linuxbrew/opt /home/greys/.linuxbrew/share/zsh /home/greys/.linuxbrew/share/zsh/site-functions /home/greys/.linuxbrew/Cellar /home/greys/.linuxbrew/Caskroom /home/greys/.linuxbrew/Frameworks ==> /bin/chgrp greys /home/greys/.linuxbrew/bin /home/greys/.linuxbrew/etc /home/greys/.linuxbrew/include /home/greys/.linuxbrew/lib /home/greys/.linuxbrew/sbin /home/greys/.linuxbrew/share /home/greys/.linuxbrew/var /home/greys/.linuxbrew/opt /home/greys/.linuxbrew/share/zsh /home/greys/.linuxbrew/share/zsh/site-functions /home/greys/.linuxbrew/Cellar /home/greys/.linuxbrew/Caskroom /home/greys/.linuxbrew/Frameworks ==> /bin/mkdir -p /home/greys/.cache/Homebrew ==> Downloading and installing Linuxbrew... ==> 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.html ==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations ==> Next steps: - Install the Linuxbrew dependencies if you have sudo access: Debian, Ubuntu, etc. sudo apt-get install build-essential Fedora, Red Hat, CentOS, etc. sudo yum groupinstall 'Development Tools' See http://linuxbrew.sh/#dependencies for more information. - Add Linuxbrew to your ~/.profile by running echo 'eval $(/home/greys/.linuxbrew/bin/brew shellenv)' >>~/.profile - Add Linuxbrew to your PATH PATH="/home/greys/.linuxbrew/bin:$PATH" - We recommend that you install GCC by running: brew install gcc - After modifying your shell profile, you may need to restart your session (logout and then log back in) if the brew command isn't found. - Run brew update --force` to complete installation by installing: /home/greys/.linuxbrew/share/doc/homebrew /home/greys/.linuxbrew/share/man/man1/brew.1 /home/greys/.linuxbrew/share/zsh/site-functions/_brew /home/greys/.linuxbrew/etc/bash_completion.d/brew /home/greys/.linuxbrew/Homebrew/.git - Run `brew help` to get started - Further documentation: https://docs.brew.sh Warning: /home/greys/.linuxbrew/bin is not in your PATH. greys@debian9:~$ export PATH=$PATH:/home/greys/.linuxbrew/bin greys@debian9:~$ brew --version Homebrew >=1.7.1 (shallow or no git repository) Linuxbrew/homebrew-core (no git repository)
I think I'll need to install gcc/cmake and then re-run brew update –force to complete the installation using latest git repository, but that's for another day.
Naturally, I already updated Homebrew on my MacBook as well:
greys@maverick:~ $ brew --version Homebrew 2.0.0-16-g81b6623 Homebrew/homebrew-core (git revision bf83f; last commit 2019-02-04) Homebrew/homebrew-cask (git revision 3f44d; last commit 2019-02-04)
Leave a Reply