Contents

From MacPorts to Homebrew

Contents

Recently I changed my Mac package management tool from MacPorts to Homebrew, since Homebrew is lightweight and much faster, here is the steps I followed:

  1. Remove MacPorts:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sudo port -f uninstall installed
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
  1. Install Homebrew:
1
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
  1. Homebrew installs binaries to /usr/local/bin