Homebrew is the missing package manager for osx.
##Homebrew Commands
which brew
Tells us if and where Homebrew is installed.
brew doctor
Tells us about the health and status of our instilation.
brew update
update the formulas and brew itself.
brew install <app_name>
installs app.
brew unistall <app_name> --force
uninstall app.
brew info <app_name>
view the output from the initial install of the app.
brew upgrade
updates all apps.
brew upgrade <app_name>
updates all apps.
####Note: ALWAYS read the Caveats section when installing with Homebrew.
##Install Homebrew
Asumming you have cURL and xcode installed.
Check if you already have Homebrew installed using the command which brew
if you do have it installed run brew update
to check for the most recent package info.
The install command found on the main page of the Homebrew site.
As of this writing:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
If you didn't have xcode installed at this point, you will be promped to install it. Hit the install button and put on some coffee this is going to take a while.
After brew finishes run brew doctor
to confirm a sucsessful intallation. After brew doctor finishes you should see "Your system is ready to brew". If not fallow the instructions.
##Install Location
Homebrew installs everything in the /usr/local/bin
.
The reason for this is that /usr/local
is already in our PATH
.
Tons of build scripts break if their dependencies aren’t in either /usr
or /usr/local
.
Finaly Apple has left this directory for use by developers like us. Which means there is no /usr/local
directory by default, so there is no need to worry about messing up existing tools.
##Homebrew Extentions