Terminal Commands
To Update:
Run these commands in order:
yay -Syy
yay -S archlinux-keyring
yay -Syu
(Note: if you are prompted to add GPG signatures after downloading updated packages in command 3, cancel the upgrade and re-start from the first command! All the downloaded packages remain in temp storage, so you won't have to re-download anything!
Why 3 commands and not just yay
?
Running yay
is a shortcut for yay -Syyu
, a twofer all-in-one "system upgrade" command that updates repositories (-Syy
), then upgrades all normal/AUR packages (-Syu
). However...
Often when upgrading packages, a new contributer is added, with a new GPG signature. Updating the core repositories, then the archlinux-keyring
package, ensures that all the correct GPG signatures are installed before upgrading. Skipping these steps may cause some upgrades to fail, as the updated packages may have new signers that are not yet in the system's keyring, and thus the integrity checks will fail.