Homebrew is a package management system for your Mac. Homebrew makes it easy to install the software you generally need development.
So how do you install Homebrew?
Installing Homebrew is very simple (However, it does have a rather large dependency). You will need the command line tools addon of Xcode installed.
Once you’ve finished installing Xcode Choose the Downloads tab and install the Command Line Tools.
Now you can install ruby with mac terminal:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
When the command is complete you should be able to run the following command in the Terminal window:
You want to use this command after system changes (such as OS X or Xcode updates). The output will tell you what’s wrong and generally how to fix it.
This will update your Homebrew formula list (only availability packages!!).
brew install [name package]
This will install a software package in your system.
bre upgrade [name package]
This will upgrade a software package in your system.
brew uninstall [name package]
And finally, you may want to remove a package you previously installed. That’s what this is for.
This will list all the packages that are currently installed on your system.
Homebrew installs packages to their own directory /usr/local/Cellar and then symlinks their files into /usr/local/bin.