upgrade outdatedでバージョンを最新にできるものの、古いバージョンはdeactiveになるだけで、uninstallされない。で、upgradeする時に -u オプションをつければ古いバージョンを削除してくれる。 ってことをさっき知ったので、今までupgradeしてきたやつは古いバージョンが残ったまま。こいつらを一発でuninstallする方法はなさそうなので、以下のようなshell scriptを書いてみた。 #!/bin/sh for f in `port installed | grep "@" | grep -v "(active)" | sed -e "s/ //g"`; do port uninstall $f; done とりあえず、目的は果たせたようだ。