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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



-----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@xxxxxxxxxxxxxxx>
"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-----
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux