root rpm package list?

Michael Schwendt mschwendt at gmail.com
Sun Nov 7 12:17:18 UTC 2010


On Wed, 03 Nov 2010 17:39:31 -0700, JD wrote:

> Another way to do it is
> 
> for pkg in `rpm -qa`; do
> deplist=`rpm -qR $pkg 2>/dev/null`
> [ "x$deplist" = "x" ] && echo Root pkg:  $pkg
> done
> 
> The only root  or leaf packages listed from the above script:
> 
> Root pkg: gpg-pubkey-a3780952-4affed06
> Root pkg: gpg-pubkey-98ab5139-4bf2d0b0
> Root pkg: gpg-pubkey-2425b284-4affedb7
> Root pkg: gpg-pubkey-e8e40fde-4b563cdc
> Root pkg: gpg-pubkey-66534c2b-4b3fa247
> Root pkg: gpg-pubkey-d22e77f2-49750871
> Root pkg: gpg-pubkey-7fac5991-4615767f
> Root pkg: gpg-pubkey-a3a882c1-4a1009ef
> Root pkg: gpg-pubkey-0ec4fe05-42038150
> Root pkg: gpg-pubkey-8fcff4da-49c51006
> Root pkg: gpg-pubkey-97a1071f-4c49d6fe
> Root pkg: gpg-pubkey-16ca1a56-4a100959
> Root pkg: gpg-pubkey-f6777c67-45e5b1b9
> Root pkg: gpg-pubkey-57bbccba-4a6f97af

Without an explanation of what you're trying to do here, this is
useless. The gpg-pubkey "packages" don't have any dependencies. Hence
they are listed by your script. However, your script doesn't list any
ordinary "root or leaf" packages, which depend on other things.


More information about the users mailing list