While install cpanel on Almalinux 8 had an issue where cpanel was not getting installed and stopping with error
024-03-21 11:12:42 449 307652: Public key for nscd-2.28-236.el8_9.12.x86_64.rpm is not installed. Failing package is: nscd-2.28-236.el8_9.12.x86_64
2024-03-21 11:12:42 449 307652: GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
2024-03-21 11:12:42 449 307652: The downloaded packages were saved in cache until the next successful transaction.
2024-03-21 11:12:42 449 307652: You can remove cached packages by executing ‘yum clean packages’.
2024-03-21 11:12:42 449 307652: Error: GPG check FAILED
2024-03-21 11:12:42 449 307652: – ssystem [EXIT_CODE] ‘/usr/bin/yum’ exited with 1
2024-03-21 11:12:42 449 307652: – ssystem [END]
2024-03-21 11:12:42 44 307652: cPanel is here to help! Our technical KnowledgeBase and cPanel Community is just a click away at https://support.cpanel.net/
2024-03-21 11:12:42 453 307652: yum failed 6 times. The installation process cannot continue.
...propagated at /home/cPanelInstall/selfgz307486/Installer.pm line 618.2024-03-21 11:12:42 44 [307540] ( INFO): cPanel is here to help! Our technical KnowledgeBase and cPanel Community is just a click away at https://support.cpanel.net/
2024-03-21 11:12:42 558 307540: ensure_pkgs_install failed: 256
The issue was due to Almalinux updated their GPG keys recently, and it appears the server may not have had the most up-to-date version.
Running command fixed the issue
rpm –import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
Now cpanel install is working fine