The recommended way to do a normal update on your system is
sudo pacman -Syu
if you don’t have any AUR packages installed.
But if you have AUR packages installed, use command
yay
to update your system.
See also:
- https://discovery.endeavouros.com/pacman/pacman-basic-commands/2021/03
- https://discovery.endeavouros.com/aur/yay-an-aur-helper-written-in-go/2021/03
And to fix the error you are getting, run these commands:
sudo pacman -Sy archlinux-keyring
yay