If you’re been using MacPorts (::shudder::), it is time to change your package management solution. After being thoroughly bent over when installing a package on MacPorts, I decided it was time to correct the many months of wrong-doing and get my *nix life in order.
After doing a complete reformat (after taking a TimeMachine backup of course), I was looking for a better way to keep my libraries and executables from infecting my computer like a virus. I know I’m a little late to the party, but enter: Homebrew. Homebrew is a new take on package management that leaves everything feeling much tastier. The first big differences are:
It keeps your filesystem clean
Instead of littering your directories with various and sundry libraries and executables, with four Ruby installs, seven different occurrences of Gems, and who knows how many symlinks, you can keep everything in a clean tidy directory: /usr/local. Of course, if you were smart and conscious, you could have done that in the first place. But I’m not going to lie, I didn’t pay attention until it was too late.
Simple, Easy to Read & Write Packages
The actual package files aren’t hard to maintain, add, or update since they’re just little Ruby files. Using a simple structure, you can build a package file for just about any library whether it needs compilation or not. Then share your package with the world and we can all benefit. The GitHub page for Homebrew shares bounties on packages people would like added if there is something in particular you are missing.
Did I mention dead simple?
Want to create a new package?
$ brew create http://foo.com/bar-1.0.tgz
Created /usr/local/Library/Formula/bar.rb
Need to edit an existing package file?
$ brew edit wget
And its all in Ruby which comes pre-installed on Macs.