Yum (a.k.a. Dnf)

Determining which GPG keys are installed

If you are on a Red Hat type machine, you can can run the following command to see which GPG keys are installed for YUM to use.

rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n'

You should see something similar to the following:

gpg-pubkey-e8562897-459f07a4 --> gpg(CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>)
gpg-pubkey-217521f6-45e8a532 --> gpg(Fedora EPEL <epel@fedoraproject.org>)