What is keyring?
A PGP keyring is basically your collection of PGP keys—stored and managed together in one place.
Simply, packages are signed using PGP keyrings, which helps people and pacman (or pamac) to recognize that the package has not been compromised or corrupted.
How to update the keyring?
Notice: This does not apply to v2.5.1 and higher, for that, you simply need to run sudo liya_update
At times, keyrings and their keys expire, inorder to update them, you first need to update pacman keyring:
sudo pacman -Sy archlinux-keyring chaotic-keyring blackarch-keyring alhp-keyring
then you need to delete the pgp keyring directory:
sudo rm -rf /etc/pacman.d/gnupg/
then populate they keyring:
sudo pacman-key --populate
I get error while trying to install via pacman?
Your keyrings have probably expired. Follow this guide.