[Rpm-maint] Python "rpm --verify"
Mike Brady
mike.brady at devnull.net.nz
Sun Feb 25 01:34:31 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for the quick response. I am working on the bcfg2 project
http://trac.mcs.anl.gov/projects/bcfg2.
The client side has drivers that support various aspects of a client's
configuration. One of the areas to cover is package management. There
are RPM and YUM drivers, but they need to be reworked because they have
a number of issues.
Functionality is nothing earth shattering:
query (rpm -qa) for inventory
verify (rpm -V)
add (rpm -i and rpm -U)
remove (rpm -e)
I have already done quite a bit of research and playing around with
code. I was hoping someone else may already done some of the work.
Never mind, I guess I will have to start coding for real now.
Thanks
Mike
seth vidal wrote:
> 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
>
>
>
- --
Mike Brady
GPG Key ID: 0x9C777DA4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF4Oen6xLAi5x3faQRAlAUAJ9+paL10xm5WIbfCd83W5H96Qgc4gCdGXdE
vK5LPblU8MSdXMQjQ1G8kq4=
=nEF6
-----END PGP SIGNATURE-----
More information about the Rpm-maint
mailing list