Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

for your GPG keys :

An ASCII armored public key can be added to the rpm database using --import. An imported public key is carried in a header, and keyring management is performed exactly like package management. For example, all currently imported public keys can be displayed by:

rpm -qa gpg-pubkey*

Details about a specific public key, when imported, can be displayed by querying. Here is the information about the GPG/DSA key:

rpm -qi gpg-pubkey-db42a60e

Finally, public keys can be erased after importing just like packages. Here is to remove the GPG/DSA key

rpm -e gpg-pubkey-db42a60e

/etc/pki/rpm-gpg is the standard place for packages with repository configuration to put keys they want to be imported. The dnf configuration in the package will have the path to the key in the gpgkey directive. The first time you try to install a package from a repository dnf prompts you to import the key.

Regards.,

for your GPG keys :

An ASCII armored public key can be added to the rpm database using --import. An imported public key is carried in a header, and keyring management is performed exactly like package management. For example, all currently imported public keys can be displayed by:

rpm -qa gpg-pubkey*

Details about a specific public key, when imported, can be displayed by querying. Here is the information about the GPG/DSA key:

rpm -qi gpg-pubkey-db42a60e
gpg-pubkey-db42a60e <---- example obtain from the command above replace with yours

Finally, public keys can be erased after importing just like packages. Here is to how to remove the GPG/DSA key

rpm -e gpg-pubkey-db42a60e
gpg-pubkey-db42a60e <------ example obtain from the first command replace with your

/etc/pki/rpm-gpg is the standard place for packages with repository configuration to put keys they want to be imported. The dnf configuration in the package will have the path to the key in the gpgkey directive. The first time you try to install a package from a repository dnf prompts you to import the key.

Regards.,