How To: Common MacPorts Tasks for MacOSX

Published Date Author: , Posted November 20th, 2014 at 5:16:01pm

Update Your Ports Tree
$ sudo port selfupdate

Show Ports Which Need Updating
$ port outdated

To upgrade all your installed and outdated ports, run
$ sudo port upgrade outdated

To upgrade only a specific port:
$ sudo port upgrade {PORT_NAME}

To list inactive ports:
$ port installed inactive

To remove all inactive ports at once:
$ sudo port uninstall inactive

To remove a specific inactive port, specify the exact version:
$ sudo port uninstall {PORT_NAME} @2.1.2_1

If you want to find all ports that depend on a given other port, you can use
$ port echo depends:{PORT_NAME}

To list the installed dependent ports:
$ port dependents {PORT_NAME}

To list the installed dependent ports recursively:
$ port rdependents {PORT_NAME}

To list which port you installed that caused the automatic installation of a dependency:
$ port installed requested and rdependentof:{PORT_NAME}

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.