Skip to main content

Installing Mac Ports

After installing X11 and Xcode developer tools, you are ready to install MacPorts.

MacPorts installer

Download the MacPorts installer:

Save the installer file on desktop:

click on the installer icon to start installation:

Click on Continue until installation is complete.

Upgrading MacPorts

After first installation, it is good practice to upgrade MacPorts from version 1.9.0 to version 1.9.1.

If MacPorts is already installed on your computer, upgrade Mac Ports using:

$ sudo port -d selfupdate

Removing MacPorts

Later on, if you would like to remove MacPorts and installed software completely:

$ sudo port -f uninstall installed

To remove MacPorts binaries and some helper tools:

$ 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