Home » Questions » Computers [ Ask a new question ]

How to uninstall all unused versions of a macports package at once

How to uninstall all unused versions of a macports package at once

When maintaining macports packages, I prefer to remove old packages when I replace them with new ones. However, over time as packages are upgraded, you end up with problems like:

Asked by: Guest | Views: 257
Total answers/comments: 1
Guest [Entry]

"If you want to uninstall all the old (non-active) versions try this:

port -y -u uninstall
# if you like what you see, change “port -y” to “sudo port”

If you mean that you want to uninstall all the versions (non-active and active) of (e.g.) the postgresql83 port, then try this:

port -y uninstall installed and postgresql83
# if you like what you see, change “port -y” to “sudo port”"