Cleaning MacPorts from old (unused) ports versions

Mojca Miklavec mojca at macports.org
Wed May 27 22:36:18 PDT 2015


On Thu, May 28, 2015 at 4:20 AM, Brandon Allbery wrote:
> On Wed, May 27, 2015 at 10:10 PM, Gustavo Seabra wrote:
>>
>> So, there were 4 (!) versions of grace installed! That should be remnants
>> of old MacPorts installations. I suppose similar multiple versions must be
>> present for a number of different ports.
>>
>> My question is: is there a way to hunt and remove those older versions of
>> ports? (preferably, some automatic way to remove them all, from all
>> programs?)
>
>
> Those are preserved old versions, from `port upgrade` --- so, if something
> is broken for you in the new version, you can easily roll back.
>
> `sudo port uninstall inactive` will clear them. If you decide you don't want
> to keep them at all, use `sudo port -u upgrade outdated`.

This is true, but I agree that it would be great to have something like
     sudo port uninstall --all grace

Otherwise one has to manually copy and paste every single version (if
one wants to keep older versions for other ports except with the
interactive version of the port command).

Mojca


More information about the macports-users mailing list