Mon, 30 Apr 2007

Quick MacPorts Reference

Posted by Ben Mon, 30 Apr 2007 21:01:00 GMT

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

Comments

Leave a response

  1. Evgeny 3 months later:

    Actually, its “port sync” to get the latest packages. While “selfupgrade” just upgrades the macports software.

  2. Evgeny 3 months later:

    Hmm, sorry – actually selfupdate does the ‘sync’ part as well.

Comments