[CentOS] Trying to find packages that depend on package X.

Fri May 26 17:22:42 UTC 2006
William L. Maltby <BillsCentOS at triad.rr.com>

On Fri, 2006-05-26 at 14:06 -0300, Rodrigo Barbosa wrote:

> 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060526/c27b7479/attachment-0005.sig>