Hi folks,
I am exploring rpm python module.
There are couple of thing I am stuck at:
1. How do one query using RPM NVRA?
#I can query using RPM name as:
import rpm
ts = rpm.TransactionSet()
mi = ts.dbMatch(rpm.RPMTAG_NAME, 'httpd' )
for hdr in mi:
print hdr[rpm.RPMTAG_NVRA]
# I got output: httpd-2.4.7-1.fc19.x86_64
However, when I am trying
mi = ts.dbMatch(rpm.RPMTAG_NVRA, 'httpd-2.4.7-1.fc19.x86_64')
for hdr in mi:
print hdr[rpm.NAME]
#I don't see any output
where am I doing wrong?
2. How I can extract Signature of an installed rpm using rpm python module?
--
Thanks and Regards,
Navid Shaikh
Received on Tue Mar 25 07:04:47 2014