This month I started a new gig which landed me with a new MacBook so I thought it seemed like a good time to try out the Homebrew package manager. It’s almost a month later and I am loving it. The beer-related jargon doesn’t hurt either.
Have you ever gotten annoyed at the time it takes for a package to get updated on MacPorts or Fink? Or tried to install a MacPorts package only to have it reinstall your ssh client or other core system component? I got fed up with this sort of thing over a year ago and have been compiling packages by hand ever since. Then I found Homebrew.
Installation is straightforward. You’ll need XCode of course, then you can just do this:
Or they have more automated approaches in their README if you’re into that sort of thing.
The real win of Homebrew is how packages are defined: in Ruby. Have a look at this hotness for describing how to install redis:
Hot right? What’s more is that if you run
brew update it’ll turn your
/usr/local into a working git
repository where you can tweak these scripts, push to your own fork and contribute back. Compare that to
the MacPorts Portfile for redis
which took me 5 minutes just to find, let alone tweak or contribute. Homebrew keeps all those files in
/usr/local/Library/Formula, so have at it!
So go grab a beer and toast your package management woes farewell. Hope you enjoy Homebrew as much as I do!