On Thursday 15 June 2006 02:01, Richard Fish wrote: > I was thinking more like: > > ldd `which kontact kmail knode akregator` | grep '=>' | awk '{print $3}' \ > | sort | uniq | xargs equery belongs | grep '/' | sort | uniq \ > | xargs printf "=%s\n" | xargs emerge -p --oneshot > > (Ok people, have at it. Show me how you can do this in 5 commands or > less.)
Very nice. :) I guess this would do: # ldd `which kontact kmail knode akregator` | awk '$2~/^=>$/{print $3}' | \ sort -u | xargs equery belongs | sort -u | while read pkg; do grep -q \ splitdebug /var/db/pkg/"$pkg"/FEATURES || echo ="$pkg"; done | \ xargs emerge -p1 :) -- Bo Andresen
pgpqWvR0uUjo1.pgp
Description: PGP signature