rpm.hdr - getting information
Once we have a header object what can we do with it?
- Accessing keys
The simple explanation is that the header is presented as a dictionary. Keys can be accessed by tag number, constants exist for these, or by name
> name = hdr[rpm.RPMTAG_NAME]
'foo'
> hdr['name']
'foo'