When you trying to dnf/yum update AlmaLinux OS, you may experience Error: GPG check FAILED.
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Public key for [PACKAGE_NAME].rpm is not installed. Failing package is: [PACKAGE_NAME].el8_9.x86_64
This is because AlmaLinux updated their GPG keys on package distribution servers. Simply run below:
rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
dnf update
The update or installation should back to normal.