MacPorts

Useful Commands

  • install package: sudo port install <packagename>
  • listing packages: port list <all/installed/outdated>
  • find available package: port search <packagename>
  • update packages: sudo port upgrade outdated
  • uninstall package: sudo port uninstall (deactivate) <packagename>
  • update MacPorts: sudo port selfupdate
  • uninstall MacPorts: rm -rf /opt/local/ /Applications/MacPorts/ /Library/Tcl/macports1.0/ /Library/LaunchDaemns/org.macports.*

Cleaning old packages after updadate (saves space)

  • check space before: du -sh /opt
  • sudo port clean --all installed
  • sudo port -f uninstall inactive
  • check space after: du -sh /opt

References