[Yum] repoquery/yum latest_and_not_obsoleted?

Axel Thimm Axel.Thimm at ATrpms.net
Sun Jul 13 06:51:09 UTC 2008


Hi,

for running bcfg2 or also maybe other configuration engines checking
the package install status one needs a list of valid packages for that
repo. Ideally there would be a command to query all packages in the
repos like yum does, but only show the latest and the ones not
obsoleted by other packages, e.g. what yum uses in its final rounds.

I know about yum list all and repoquery, but I would still need to
sort by evr, remove all but the latest and then check for
obsoletes/conflicts etc. I guess I would need something like yum
install '*' into an empty chroot, but in a repoquery like formated
manner. Any ideas on how to do this?
-- 
Axel.Thimm at ATrpms.net



More information about the Yum mailing list