Delete all installed ports apart from one and its dependencies

Rainer M Krug Rainer at krugs.de
Thu Oct 10 03:23:02 PDT 2013


Clemens Lang <cal at macports.org> writes:

> On Thu, Oct 10, 2013 at 12:09:27PM +0200, Rainer M Krug wrote:
>> Is it possible to do something like the following to delete all
>> installed ports except the ones digikam depends on:
>> 
>> ,----
>> | sudo port uninstall installed EXCEPT digikam
>> `----
>
> sudo port uninstall installed and not digikam and not rdepof:digikam.
>
> Or:
>
> sudo port unsetrequested installed; sudo port setrequested digikam
> and remove leaves like you're used to.

Thanks - I like the second one as it makes further maintenance much
easier.

Cheers,

Rainer

-- 
Rainer M. Krug

email: RMKrug<at>gmail<dot>com



More information about the macports-users mailing list