The missing package manager for OS X
Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn't include with OS X.
$ brew install wget
Homebrew installs packages into their own isolated prefix and then symlinks everything into /usr/local.
$ cd /usr/local
$ find Cellar
Cellar/wget/1.12
Cellar/wget/1.12/bin/wget
Cellar/wget/1.12/share/man/man1/wget.1
$ ls -l bin
bin/wget -> ../Cellar/wget/1.12/bin/wget
Homebrew is self-contained and unintrusive.
Create your own Homebrew packages in seconds.
$ brew create http://foo.com/bar-1.0.tgz
Created /usr/local/Library/Formula/foo.rb
Homebrew has a Git foundation, so enjoy version control on your brewing customizations and easily merge upstream updates.
$ brew edit wget # opens in TextMate!
Homebrew formula are simple Ruby scripts:
require 'formula'
class Wget <Formula
homepage 'http://www.gnu.org/software/wget/'
url 'http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2'
md5 '308a5476fc096a8a525d07279a6f6aa3'
def install
system "./configure", "--disable-debug", "--prefix=#{prefix}"
system "make install"
end
end
Homebrew compliments OS X. Install your gems with gem, and their dependencies with brew.
“ Homebrew is the bee’s knees, friends. So far it’s a perfect replacement for MacPorts. ”— @thillerson