What is Homebrew
Homebrew is a package management system for Mac OS X.
How to install Homebrew
Step 1) Homebrew has a dependency on Xcode and Xcode command line tools. So first install latest Xcode and command line tools by going Xcode -> Preference, Choose “Downloads” tab and click on “install the Command Line Tools”
Step 2) Run this command in Terminal to install Homebrew –
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Now let’s go over a few common tasks you will have with Homebrew.
If you are doing any system update like OS X update or Xcode update you can check Homebrew’s health using this command. Homebrew will tell you if there is any issue with it or generally how to fix that issue.
This will update your Homebrew formula list. Please note that this will not update all your installed package it will just update the version and availability of packages you could install. You should run this often to keep your formula list updated or whenever you install/upgrade something new.
This will update your installed packages.
brew install [package name here]
This will install new packages for you i.e.
brew install mysql
This will list all the packages that are currently installed on your system.
brew info [package name here]
This will show you information about a installed package.
brew uninstall [package name here]
The will remove package you previously installed.
So that’s is pretty much everything about Homebrew.