2009-08-12

MacPorts commonly used commands

As usual, this blog is for keeping notes, as I, like, keep forgetting commands.

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

Use the upgrade command with care. In the case of Python 2.5, it will update some of the libraries to 2.6, breaking half of the modules.

For a complete list of all installed ports:

sudo port installed

No comments: