I have finally replaced MacPorts with Homebrew on my Macbook Pro.

First, I made sure to follow the steps to remove any packages and macports itself.

derekd$ sudo port -fp uninstall --follow-dependents installed
derekd$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

Disclaimer: Remove directories at your own risk. Steps to uninstall MacPorts found here.

And Homebrew installed just as easily!

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"

And that’s it. Further instructions can be found on Homebrew’s installation guide

My first impressions of Homebrew are that it is really easy to install and use. Even though I am masochistic and enjoy building things from source, I have gotten used to the yum package manager on RedHat production machines at work. It is nice to have something similar on my MacBook Pro.

Beware!

I had uninstalled wget from MacPorts. When building from source (yes, I still do that), some packages require wget. In my case, installing Percona Server from Bazaar requires wget. So be sure to re-install wget:

brew install wget

Be Sociable, Share!