[Rpm-maint] Python "rpm --verify"
seth vidal
skvidal at linux.duke.edu
Sun Feb 25 01:06:23 UTC 2007
On Sun, 2007-02-25 at 13:50 +1300, Mike Brady wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I am invloved in writing some sysadmin tools in Python and am looking
> for rpm --verify functionality that is directly accessible in Python.
> Meaning that I do not want to use popen or any of its cohorts.
>
> I can't see anything in rpm-python. Is there anything around to do
> this? I don't want to be recreating the wheel.
>
> Thanks
>
There isn't anything that does that automatically. you'd need to do
something like: (in pseudocode)
for package in the rpmdb:
for file in package:
get md5sum from pkg hdr
get md5sum from file on disk
compare md5sums
What is your end goal that you're doing this for? I'm curious b/c it is
something I've wanted to have time to implement.
Thanks,
-sv
More information about the Rpm-maint
mailing list