Quick MacPorts Reference

A couple of quick commands (since I’m forever forgetting them).

Installing a port (example given is for php):

port search php
port info php5
port variants php5
sudo port -v install php5 +apache2 +mysql5

Upgrade all outdated packages:

sudo port selfupdate
sudo port upgrade outdated

For a complete list of all installed ports:

sudo port installed

MacPorts Quick Start Guide


About this entry