Importing Keys
To verify CentOS packages, you must import the CentOS GPG key. To do so, execute the following command at a shell prompt:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
To display a list of all keys installed for RPM verification, execute the command:
rpm -qa gpg-pubkey*
For the CentOS key, the output includes:
gpg-pubkey-37017186-45761324
To display details about a specific key, use rpm -qi
followed by the output from the previous command:
rpm -qi gpg-pubkey-37017186-45761324