Is there is a way to verify an installed RPM from python?

Seth Vidal skvidal at fedoraproject.org
Wed Dec 17 14:50:03 UTC 2008



On Wed, 17 Dec 2008, Panu Matilainen wrote:

> 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.

What does %verifyscript need to do?/

-sv



More information about the Rpm-list mailing list