How to add a GPG key to RPM

I always forget the syntax for retrieving GPG keys from a key server, e.g. to add them to RPM. Here the reminder:

gpg --keyserver --recv-key 0xde95bc1f
gpg -a --export 0xde95bc1f > key.gpg
rpm --import key.gpg
rm key.gpg

P.S. the example key is used to sign Libvirt RPM's for Fedora


GNU Privacy Guard (GPG,

GNU Privacy Guard (GPG, additionally GnuPG) is free encryption programming that is consistent with the Open PGP (RFC4880) standard. Utilizing GPG you can encode (and unscramble) records that contain delicate information. Fast And Furious Leather Vest Instylejackets

I think you have now found

I think you have now found out what you had been looking for. The syntax and more than that!