# 1. Clean DNF cache
sudo dnf clean all
# 2. Update the AlmaLinux release package (installs new keys)
sudo dnf upgrade almalinux-release -y
# 3. Import the latest AlmaLinux GPG key
sudo rpm –import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
# 4. Try the update again
sudo dnf update