uninstalling ports

Joshua Root jmr at macports.org
Thu Apr 30 07:36:38 PDT 2009

Erwan David wrote:
> On Thu, Apr 30, 2009 at 04:11:14PM CEST, Alejandro Aragon <alejandro.aragon at gmail.com> said:
>> Hi everyone,
>> I need to free up some space and now I see that the /opt folder has  
>> 12.2GB used. After invoking 'sudo port installed', I see that there are 
>> way too many ports that are installed but not active, so I thought that I 
>> may uninstall them. Instead of going one by one (because there are too 
>> many), is there a way to uninstall all inactive ports?
> sudo port -f -u uninstall
> will desinstall all unactive ports.

No need for -f here since 1.7.0. An alternative would be:

`sudo port uninstall inactive`

- Josh

More information about the macports-users mailing list