-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, May 26, 2006 at 01:22:42PM -0400, William L. Maltby wrote: > On Fri, 2006-05-26 at 14:06 -0300, Rodrigo Barbosa wrote: > <snip> > > > rpm -q --provides PACKAGE_NAME | sed 's/^/"/;s/\([^[:space:]]\) * > > $/\1"/;/=/{h;s/ =.*$/"/;G}' | xargs rpm -q --whatrequires | grep -v -E > > '^no package' > > Still needs some work, Ran it here and only got 38 packages, s/b 207 > here. Timing on 1st run was > > real 0m0.701s > user 0m0.186s > sys 0m0.019s > > By the time we get 207 pkgs, I suspect a little overhead penalty. I didn't change it to improve performance, for to get all the results correctly (previous one was missing some of them). I really don't think there is any faster way to do it, since rpm accessing its db3 files is what costs so much on this. 10 or 100 dependencies should make little difference. - -- Rodrigo Barbosa <rodrigob at suespammers.org> "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEd3q2pdyWzQ5b5ckRAmeZAKC4UBaqYIiBZ64e7J9q9z0eE0js7wCfYXR2 d26Keb/h17FYBiq+3ot+0rY= =hkAo -----END PGP SIGNATURE-----