Homebrew is a package manager for OSX that makes it easy to install packages/programs.
To install Homebrew on OSX, run the following in a command line:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
The next thing to do is update and upgrade Homebrew:
brew update && brew upgrade
Installing programs with brew
It is then a simple matter to install packages/programs using the
brew command, e.g.
brew install tmux
brew install git
It is possible to install R using
brew install r
You may want to run the following (before updating/upgrading):
- To fix permissions for Homebrew:
sudo chown -R $USER /usr/local
- To give Homebrew packages priority over system packages, the following command adds a line to your
echo "export PATH=/usr/local/bin:\$PATH" >> ~/.bash_profile