Mon, 30 Apr 2007
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


Actually, its “port sync” to get the latest packages. While “selfupgrade” just upgrades the macports software.
Hmm, sorry – actually selfupdate does the ‘sync’ part as well.