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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 -
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux