Monday, May 10, 2010

Category:

Hello Homebrew

Installing some development tools and libraries on a Mac can be a pain. (In particular, I'm thinking of the woes of installing MySQL as I write this!)
So I was pleased to come across Homebrew when installing MongoDB.  Homebrew installs with a one-liner ruby script, but it is recommended that Fink and MacPorts are uninstalled first.

So to uninstall Fink it is simply enough to remove the /sw directory (sudo rm -rf /sw).  For MacPorts there is a little more cleaning to be done.  Firstly installed ports can be uninstalled by executing sudo port -f uninstall installed.

Then the following directories need removing by running:
sudo rm -rf \
/opt/local \
/Applications/DarwinPorts \
/Applications/MacPorts \
/Library/LaunchDaemons/org.macports.* \
/Library/Receipts/DarwinPorts*.pkg \
/Library/Receipts/MacPorts*.pkg \
/Library/StartupItems/DarwinPortsStartup \
/Library/Tcl/darwinports1.0 \
/Library/Tcl/macports1.0 \
~/.macports


Done.