How do I get rid of all the old cruff?
Philip Neukom
neukomp at profitanalytics.com
Sat Jul 31 05:43:04 PDT 2010
On 31.07.2010 01:36, Ryan Schmidt wrote:
> On Jul 31, 2010, at 00:34, Philip Neukom wrote:
>
>> I did the update to Macports 1.9.1 today. And had all applications
>> updated. Afterwards I did a "port clean --all all" and a
>> "port_cutleaves" to get rid of all the inactive ports.
>>
>> But when I do the "port installed", I have a list with many many
>> programs like in the list below....
>>
>> ---cut start---
>> The following ports are currently installed:
>> aspell @0.60.6_3+macosx (active)
>> aspell-dict-en @6.0_0 (active)
>> atk @1.28.0_0
>> atk @1.30.0_0 (active)
>> ...
>> ghostscript @8.70_0
>> ghostscript @8.70_1
>> ghostscript @8.71_1
>> ghostscript @8.71_2
>> ghostscript @8.71_3
>> ghostscript @8.71_4 (active)
>> ...
>> ---cut end---
>>
>> How do I get rid of all of the programs that are not active but also not
>> inactive (ie. atk @1.28.0_0, ghostscript @8.70_0, ghostscript @8.70_1,
>> ghostscript @8.70_2, ghostscript @8.70_3 etc. etc.?
>
> Well, a port is either active or it is inactive. To uninstall all the inactive ports, you could use
>
> sudo port uninstall inactive
>
> If you want to avoid leaving behind old versions when upgrading, use the -u switch when upgrading, i.e.
>
> sudo port -u upgrade ghostscript
>
> or
>
> sudo port -u upgrade outdated
>
Thanks, Ryan.
The command:
sudo port uninstall inactive
got rid of all the extra installed versions.
If all ports are either active or inactive, why would "port installed"
show some applications as (active), some as (inactive) and many with no
comment at all.
Does the port installed command only show the last installed as
inactive? If yes, wouldn't it make sense to show all the "no comment"
as (inactive)?
Thanks again.
More information about the macports-users
mailing list