You can use this to remove inactive ports:
sudo port uninstall inactive
You will gain additional space by removing downloaded distfiles with:
sudo port clean --all installed
But there is no way to find orphaned ports, as MacPorts does not track
if ports are installed as dependency or by request. But there is the
tool port_cutleaves which allows to remove possible no longer needed ports.
sudo port install port_cutleaves
sudo port_cutleaves
sudo port selfupdate
sudo port -u upgrade --enforce-variants outdated +universal
没有评论:
发表评论