Skip to content

Instantly share code, notes, and snippets.

@kdabir
Last active March 14, 2016 06:55
Show Gist options
  • Save kdabir/3799150 to your computer and use it in GitHub Desktop.
Save kdabir/3799150 to your computer and use it in GitHub Desktop.
MacPorts Maintenance

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