Spec-Zone .ru
спецификации, руководства, описания, API

2.1.4.4. Signature Checking Using RPM

For RPM packages, there is no separate signature. RPM packages have a built-in GPG signature and MD5 checksum. You can verify a package by running the following command:

shell> rpm --checksig package_name.rpm

Example:

shell> rpm --checksig
        MySQL-server-5.7.2-0.glibc23.i386.rpmMySQL-server-5.7.2-0.glibc23.i386.rpm: md5 gpg OK
Note

If you are using RPM 4.1 and it complains about (GPG) NOT OK (MISSING KEYS: GPG#5072e1f5), even though you have imported the MySQL public build key into your own GPG keyring, you need to import the key into the RPM keyring first. RPM 4.1 no longer uses your personal GPG keyring (or GPG itself). Rather, RPM maintains a separate keyring because it is a system-wide application and a user's GPG public keyring is a user-specific file. To import the MySQL public key into the RPM keyring, first obtain the key, then use rpm --import to import the key. For example:

shell> gpg --export -a 5072e1f5 > 5072e1f5.ascshell> rpm --import 5072e1f5.asc

Alternatively, rpm also supports loading the key directly from a URL, and you can use this manual page:

shell> rpm --import
        http://dev.mysql.com/doc/refman/5.7/en/checking-gpg-signature.html

If you need to obtain the MySQL public key, see Section 2.1.4.2, "Signature Checking Using GnuPG".