checking binary rpm packages

Florian La Roche laroche at redhat.com
Sat Jan 29 14:28:37 UTC 2005


Here is a start to check binary rpm packages for consistency:

	http://people.redhat.com/laroche/pyrpm/

Right now mostly the rpm header is checked to get a feeling
how much "strange" binary rpm packages might be out there.
It has two modes of checking, one for the current Fedora Development
tree with more strict checks and a more relaxed one that should
work for all existing rpm packages, also other distributions.

I'd be interested to get feedback on what output is generated
for rpm addon expositories and non - Red Hat distributions
if the script generates warning messages.
At least for Fedora Core only very few rpm tags are actually
used in the rpm header.

Examples usage:
./pyrpm.py --strict /mirror/fedora/development/i386/Fedora/RPMS/*.rpm

Checking all rpms:
locate .rpm | xargs ./pyrpm.py
find /mirror/linux -name "*.rpm" -type f -print0 2>/dev/null |
	xargs -0 ./pyrpm.py

greetings,

Florian La Roche




More information about the fedora-devel-list mailing list