[Yum] Re: wishlist for yum

Farkas Levente lfarkas at bppiac.hu
Mon Jun 14 11:13:57 UTC 2004

seth vidal wrote:
> On Fri, 2004-06-11 at 17:27 -0500, Jordan Russell wrote:
>>Farkas Levente wrote:
>>>- list all packages which do not comes from the given repository or the 
>>>repositories in the yum.conf. this is something similar to 'yum list 
>>>extras' but with a much stronger check. ie. if I install mozila from 
>>>dag's repo then list as an extra, so do not check just the name.
>>I could really use this functionality as well.
> so how does yum know what repository an installed package came from?

it can check/compare the pkgid of the packages in the repos and the 
installed ones.
eg: (but can be more faster and clever then this)
# rpm -qp --queryformat "%-20{NAME} %{PKGID}\n" 
mozilla              d2978807d0b42d5219a503b6da6e9782

# rpm -q --queryformat "%-20{NAME} %{PKGID}\n" mozilla
mozilla              d2978807d0b42d5219a503b6da6e9782

   Levente                               "Si vis pacem para bellum!"

More information about the Yum mailing list