MacPorts Basics

Update Ports

$ sudo port selfupdate

Search Ports

Search for specific ports

$ port search python

Simple search for ports by line

$ port search --line python

Advanced search for ports (start with python)

$ port search --name --line --glob 'python*'

Install ports

$ sudo port install python34

Clean ports (if install fails)

$ port clean <portname>

Uninstall ports

$ sudo port uninstall <portname>

List installed ports

$ port installed

Update ports

Check for updates

$ port outdated

Update outdated ports

$ sudo port upgrade outdated

Update specific port

$ sudo port upgrade <portname>