Is there is a way to verify an installed RPM from python?
Panu Matilainen
pmatilai at laiskiainen.org
Wed Dec 17 09:46:36 UTC 2008
On Thu, 11 Dec 2008, Dotan Barak wrote:
> Hi.
>
> Is there is a python API (using the rpm package) to verify that an
> installed RPM is o.k?
>
> (or should is use the external executable "rpm -V <package_name>" to check it)
There's no equivalent API for what "rpm -V" does, no (it's been on
TODO-lists for a while, just hasn't gotten done). Most of it can be done
"manually" by looking at rpm.fi contents (this is what yum does, see
http://yum.baseurl.org/gitweb?p=yum.git;a=blob_plain;f=yum/packages.py;hb=HEAD)
but %verifyscript gets a good deal trickier. Parsing "rpm -V <package>"
output is probably easiest for now.
- Panu -
More information about the Rpm-list
mailing list