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

Panu Matilainen pmatilai at
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 contents (this is what yum does, see;a=blob_plain;f=yum/;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