Distro-Specific fedora Updated Jun 27, 2026

Fedora and RHEL: Importing RPM GPG Keys with rpm --import

How the RPM trust database differs from Debian-based systems, and the two ways to import a renewed key.

RPM has its own key store

Unlike Debian-based systems, RPM-based distros (Fedora, RHEL, CentOS, AlmaLinux) keep trusted GPG keys inside the RPM database itself rather than as separate keyring files.

Importing a key

If the vendor publishes a direct URL to their public key, importing is a single command:

sudo rpm --import https://example.com/RPM-GPG-KEY-example

If you only have a key ID, fetch it from a keyserver first, then pipe the exported key into rpm --import.