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:
- 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
|
- Install Homebrew:
1
| ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
|
- Homebrew installs binaries to
/usr/local/bin