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

T.C. Hollingsworth tchollingsworth at gmail.com
Wed Nov 23 04:00:16 UTC 2011

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.


More information about the users mailing list