System Update Guide
Keeping your CachyOS system up to date is important for security, stability, and new features. This guide will show you how to update your system using pacman
and yay
.
Update System Packages
To update all system packages, including those from the official repositories:
sudo pacman -Syu
This command:
-S
: Synchronize packages-y
: Refresh package database-u
: Update all packages
Update AUR Packages
To update packages from the Arch User Repository (AUR) using yay:
yay -Syu
Update System and AUR Packages Together
To update both system packages and AUR packages in one command:
yay -Syu --aur
Clean Package Cache
After updating, you might want to clean the package cache to free up disk space:
sudo pacman -Scc
Best Practices
- Always read the update messages before proceeding
- Keep a backup of important data before major updates
- Update regularly to maintain system security
- If you encounter any issues, check the CachyOS forums for solutions