Listing leaves on the installed ports dependency graph

Arno Hautala arno at
Wed Feb 17 15:57:21 PST 2010

On Wed, Feb 17, 2010 at 15:57, Sam Kuper <sam.kuper at> wrote:
> port installed | sed 's/ (active)//g' | xargs -0 port dependents

As has already been posted, port_cutleaves is probably a better
solution.  But here's the correct xargs syntax anyway.

port installed | sed 's/ (active)//g;s/@.*//;s/ //g' | gxargs -d "\n"
-n1 port dependents

Note that I used gxargs, provided by findutils, as Apple provided
xargs does not understand the "-d" flag to change the delimeter.
Also, "-0" would be used to tell xargs that records are separated by a
null character.  This usually only occurs with output from "find
I also stripped a bit more from the "port installed" output.

arno  s  hautala    /-|   arno at

pgp eabb6fe6 d47c500f b2458f5d a7cc7abb f81c4e00

More information about the macports-users mailing list