1. Reference: https://github.com/Homebrew/linuxbrew
2. Installation
2.1 Pre-requisites:
2.1.1 Debian or Ubuntu:
sudo apt-get install build-essential curl git ruby libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev
2.1.2 Fedora:
sudo yum groupinstall 'Development Tools' && sudo yum install curl git ruby bzip2-devel curl-devel expat-devel ncurses-devel
3. Homebrew Install:
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew
4. Edit .bashrc ( sudo nano ~/.bashrcÂ
) or .zshrc and add the following 2 lines at the end of the file:
export PATH="$HOME/.linuxbrew/bin:$PATH"
export LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH"
5. and restart the terminal.
6. Usage:
basic package install with brew:
brew install $WHATEVER_YOU_WANT
7. Full example help/usage:
brew [info | home | options ] [FORMULA...]
brew install FORMULA...
brew uninstall FORMULA...
brew search [foo]
brew list [FORMULA...]
brew update
brew upgrade [FORMULA...]
brew pin/unpin [FORMULA...]
Troubleshooting:
brew doctor
brew install -vd FORMULA
brew [--env | --config]
Brewing:
brew create [URL [--no-fetch]]
brew edit [FORMULA...]
open https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook
Further help:
man brew
brew home
8. Available packages to be used with brew:
– you can browse the formula directory on GitHub
– or type brew search for a list (in the terminal window)
– or visit braumeister.org to browse packages online.