Arch Maintenance
Package Cache
Clean the cache of old packages in /var/cachepacman/pkg/:
1ls /var/cache/pacman/pkg/ | wc -l
2sudo pacman -Sc
3ls /var/cache/pacman/pkg/ | wc -l
New Configs
If you chance a configuration file, such as /etc/environment, and pacman wants to update the file, it will place /etc/environment.pacnew.
Check the new files, then look at the difference between the pacman version, and your version.
1sudo find /etc/ /var/ /usr/ -name "*.pacnew"
2diff /etc/pacman.d/mirrorlist*
Either,
- Update the files manually,
1sudo -e /etc/pacman.d/mirrorlist
2sudo rm /etc/pacman.d/mirrorlist.pacnew
Or use a tool like pacdiff to view the changes next to each other, and select them with vim.
1sudo pacman -S pacman-contrib
2sudo pacdiff