Installing the homebrew package manager for OS X

homebrew is a package management system for OS X that allows you to install various open source packages much like macports.  Homebrew claims to simplify some aspects of the package mangement process, for example, by putting packages in /usr/local/Cellar/PKG and symlinking into /usr/local rather than relying on a custom package database.  Another advantage is that it aims to reuse any software already installed on your Mac instead of taking a self-contained approach, like macports, where you end up needing a custom version many libraries you already have (the duplication of which can sometimes come back to bite you).

Anyhow, I'm just installing it now to give it a shot.  Here's how I installed it using git archive.  I thought this two liner was worth sharing:

 sudo chown -R `whoami`:staff /usr/local
cd ~/src
 git clone git://github.com/mxcl/homebrew.git
cd homebrew
git archive --format=tar HEAD|(cd /usr/local;tar xf -)