Before updating, ensure critical data is backed up and no important processes are running. Verify sufficient disk space with df -h
.
Preparation
sudo pacman -Syu --noconfirm reflector
sudo reflector --latest 20 --sort rate --save /etc/pacman.d/mirrorlist
sudo pacman -S archlinux-keyring
Update System
- Refresh Package Databases:
sudo pacman -Syy
- Perform Full System Upgrade:
sudo pacman -Syu --overwrite=''
Review the update list carefully before confirming.
Post-Update Tasks
- Remove Orphaned Packages:
sudo pacman -Qtdq sudo pacman -Rns -
- Clear Package Cache:
sudo paccache -r
Troubleshooting
If encountering signature errors:
sudo rm -r /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate archlinux
Reboot if kernel or critical system components were updated: sudo systemctl reboot