4.4 GPG key file location must be explicitly set when adding repositories

If you are using the dnf config-manager --add-repo command to add a repository, the command does not add the GPG key file location configuration for that repository. The result is a package installation failure; as by default, dnf enables gpgcheck, but it requires the GPG key to be set or imported.

One workaround for this issue is to run the following command to ensure that the GPG key file location is set and imported:

# rpm --import "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle"

Another workaround is to add/set the GPG key for all of the individual repository entries under /etc/yum.repos.d, for example:


(Bug ID 29535274)