MacPorts clean upgrade
#!/bin/bash
sudo port selfupdate
sudo port upgrade outdated
sudo port clean --all all
sudo port -f uninstall inactive
sudo rm -rf /opt/local/var/macports/build/*
sudo rm -rf /opt/local/var/macports/distfiles/*
sudo rm -rf /opt/local/var/macports/packages/*
You could also run this whole script as "sudo"
Written by Philipp Haußleiter
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Osx
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#