Homebrew
Features and usage are summarized on the homepage.
Quick Install to /usr/local
This script will prompt for confirmation before it does anything:
ruby -e "$(curl -fsS http://gist.github.com/raw/436471/install_homebrew.rb)"
Afterwards, install Xcode.
Umm… I thought I could install it anywhere?
Indeed, you can. Refer to our complete installation instructions.
Dude! Just give me a one-liner!
Okay then, but please note this installs Homebrew as root and we recommend against that.
curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
More Documentation
The wiki is your friend.
Who Are You?
I'm Max Howell and I'm a splendid chap.