test local rpm file in place for consistency, size, etc.

Skunk Worx skunkworx at verizon.net
Wed Nov 23 04:13:13 UTC 2011

On 11/22/2011 08:00 PM, T.C. Hollingsworth wrote:
> On Tue, Nov 22, 2011 at 8:46 PM, Skunk Worx<skunkworx at verizon.net>  wrote:
>> I have a set of .rpm files restored from backups.
>> They have nothing to do with my current install except they are in the
>> file system.
>> Is there a command that will sweep these (several hundred) .rpm files
>> and test their internal values against the file itself, in place, to
>> check for any problems with size / consistency / corruption?
> "rpm -K" will verify the hash and GPG signature (if one exists) for a
> provided set of RPMs.
> It will work fine on older RPMs but may fail on ones built with newer
> versions of RPM than the one installed on the system.
> -T.C.


foo.rpm : (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG#6df2196f)

They all say this -- which seems okay -- all things considered. They are 
Fedora 9 update rpms from a couple years ago.


More information about the users mailing list