Arch Linux Maintenance Basics
Short guid for keeping yur Arch fresh
If you didn’t update your system for long time you might encounter problems with installation of new packages. Here is my guide of how to resolve those issues.
Update Mirror List
Install python reflector script
|
|
Update Arch mirrors at /etc/pacman.d/mirrorlist
|
|
Update archlinux-keyring
If system is old enough and it shows problems with gpg signatures
|
|
Set system clock
For old systems it might be important to update date and time for proper work of signature verification.
- Update system date and time
|
|
- Set hardware clock from system clock
|
|
- Show hardware clock
|
|
Update the system
Regularly update the system. Here is command for doing this in a normal situation
|
|
If you changed the mirrors you might want to refresh all package lists and force downgrade any potentially too-new packages from new mirror
|
|
Delete orphan packages
Orphan packages are build dependencies for some other packages. It is unneeded for system work. You might consider delete it for saving some disk space
|
|
Clean the Package Cache
Pacman keeps cached versions of all previously installed packages. Sometimes it could occupy a lot of disk space. To prevent this install paccache
|
|
Remove all cached versions of packages except most recent 2 versions
|
|
Remove cached uninstalled packages
|
|
Reboot the systen
After update don’t forger to update your system for proper installation of kernel modules
|
|
Congratulations your fresh system is up and running!