+1 vote
1.1k views
in Linux by
When updating a newly installed AlmaLinux 8 with yum and dnf, I encountered the following error:

 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux

Public key for wget-1.19.5-12.el8_10.x86_64.rpm is not installed. Failing package is: wget-1.19.5-12.el8_10.x86_64

 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux

The downloaded packages were saved in cache until the next successful transaction.

You can remove cached packages by executing 'yum clean packages'.

Error: GPG check FAILED

1 Answer

+1 vote
by

If you encounter a GPG check error when using dnf or yum on AlmaLinux, you can update the key with the following command:

rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux

...