How To: Install The HomeBrew Package Management Utility Locally On Mac OSX

Posted on August 29, 2011

I was tired of having to compile my shiz by hand and not being a fan of Macports, I decided to give HomeBrew a try. Not knowing if I would like it, I wanted to install it locally in my home directory so that I could blow it away should it upset me.

Here are the steps I used to make it happen.

Assuming that you have git and all other dependancies (Intel CPU 2, OS X 10.5 or higher, Xcode with X11 3, Java Developer Update 4) installed.

jared@localhost$ cd
jared@localhost$ git clone
jared@localhost$ vi ~/.bash_profile

Add the following line then :wq

export PATH=$HOME/homebrew/bin:$PATH

Open a new shell session and type brew.

jared@localhost$ brew
Example usage:
  brew install FORMULA...
  brew uninstall FORMULA...
  brew search [foo]
  brew list [FORMULA...]
  brew update
  brew upgrade [FORMULA...]
  brew [info | home] [FORMULA...]
  brew doctor
  brew install -vd FORMULA
  brew [--env | --config]
  brew create [URL [--no-fetch]]
  brew edit [FORMULA...]
Further help:
  man brew
  brew home

You are all set!