Skip to content

Instantly share code, notes, and snippets.

@wxn0000
Forked from kdabir/macports_maintenance.md
Last active August 29, 2015 14:08
Show Gist options
  • Save wxn0000/5e7fb41132afad37cce0 to your computer and use it in GitHub Desktop.
Save wxn0000/5e7fb41132afad37cce0 to your computer and use it in GitHub Desktop.

MacPorts Maintainence

UPDATING

  • To update ports definition $ sudo port selfupdate

  • To upgrade outdated software to latest$ sudo port upgrade outdated

CLEANING

  • 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

CHECKING

  • 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

INSTALLING

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 :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment