Last Updated: February 25, 2016
·
649
· phaus

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"