Listing leaves on the installed ports dependency graph
sam.kuper at uclmail.net
Wed Feb 17 12:57:47 PST 2010
I want to obtain a list of all the installed ports which have no dependents,
so that I can keep the ones I need and uninstall the rest. I'm trying to do
this via the following command:
port installed | sed 's/ (active)//g' | xargs -0 port dependents
However, this isn't working quite as expected. Instead of getting results
like, "aalib has no dependents!", I instead get the following:
Error: Registry error: The following ports are currently installed:
boehmgc @7.1_0+darwin_9 not registered as installed.
I realise my xargs knowledge isn't great and I've probably messed up
somewhere in my command syntax, but I'd be grateful for help, either
correcting my syntax or - if possible - letting me know a native MacPorts
command which does the same job.
Many thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users