Homebrew appears to be a nice replacement for MacPorts for installing unix applications not provided by Apple. It puts installed libraries in their own folders in
/usr/local/Cellar/ and then sym-links the executables to
/usr/local/bin/. It also appears to provide a nice way of keeping Python 2.X up-to-date, but I haven’t tried that yet.
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
To remove the installed macports, I first just mv the macports directory to a dummy name so that the macports won’t be found in the PATH but that they can easily be reinstated if any problems with homebrew arise:
sudo mv /opt/local /opt/local_macports
If you used the “tar” trick described below to install replace the Mac tar, you need to first revert to the old tar and then use homebrew to re-install gnu-tar:
sudo ln -sf /usr/bin/mactar /usr/bin/tar brew install gnu-tar sudo ln -sf /usr/local/bin/gtar /usr/bin/tar
Some useful initial homebrew libraries:
brew install wget brew install imagemagick brew install fftw brew install cfitsio brew install gnuplot