-
To update ports definition
$ sudo port selfupdate
-
To upgrade outdated software to latest
$ sudo port upgrade outdated
-
To clean temp files generated by ports
$ sudo port clean --all installed
-
To uninstall all installed that are inactive
$ sudo port -u uninstall
Or$ sudo port -f uninstall inactive
-
To list all the software/lib installed by macports
$ port installed
-
To find space occupied by software installed by macports
$ du -sh /opt/local
-
To find if port is available for appName
$ port list | grep appName
Interesting options you can provide while doing port install
-u uninstall non-active ports when upgrading and uninstalling
-c autoclean mode (execute clean after install)
####Resources :
man port
- ports How TO
- ports quickstart
- This blogpost