Uninstall non-active packages
Bart Masschelein
masschel at gmail.com
Sun Dec 7 13:57:08 PST 2008
Hi Ryan,
Not so sweet as you mention ;-). I get
---> Unable to uninstall perl5 5.8.8_0+darwin_9, the following ports
depend on it:
---> autoconf
---> automake
Error: port uninstall failed: Please uninstall the ports that depend
on perl5 first.
I have 5.8.8_3 installed, which is the active one. When I use the -f
option, I get:
---> Unable to uninstall perl5 5.8.8_0+darwin_9, the following ports
depend on it:
---> autoconf
---> automake
Warning: Uninstall forced. Proceeding despite dependencies.
I guess I will see if this was a clever idea when I recompile one of
my repositories...
But indeed, my inactive ports are gone now. Thanks. Inactive, saved in
memory ;-).
Bart
On 07 Dec 2008, at 22:40, Ryan Schmidt wrote:
>
> On Dec 7, 2008, at 15:23, Bart Masschelein wrote:
>
>> Is there a way to get a list of the non-active packages, so one
>> could do sth like sudo port uninstall <list>, or sudo port clean
>> <list>? I never use the -u option (read: I only recently discovered
>> it, and will start using it from now one ;-)), hence I have a lot
>> of non-active packages laying around.
>>
>> Or in short: how can I get rid of non-active packages, for which
>> new versions are already installed?
>
> Sure:
>
> sudo port uninstall inactive
>
> Note that this won't quite work right in MacPorts 1.6.0: it will
> complain that you are uninstalling a dependency of another port,
> even though you're not, really -- you have newer versions active
> already. In MacPorts 1.7.0 this will work right. Until then, you
> need to force it with:
>
> sudo port -f uninstall inactive
>
>
>
More information about the macports-users
mailing list