Keeping it healthy
Read the news, clean caches automatically, and know how to roll back.
- Read the news before updating.
informantblockspacman -Syuuntil you have read new Arch news items. - Old packages: a pacman hook runs
paccache -rk2after every transaction (keeps two versions) →files/paccache.hookin the playbook in/etc/pacman.d/hooks/. - Snapshots clean themselves up (limits in Snapshots).
- Logs:
sudo journalctl --vacuum-size=200M. - After a Hyprland update: MvpDots rebuilds their plugins automatically at the next login (
hypr-plugins status). - Something broke after an update? Reboot, choose snapshots in GRUB, boot the one before the update, then
sudo snapper rollback. - Change one thing at a time, take a snapshot first, and keep a log of what you changed and why.
Before and after
+[Trigger]
+Operation = Upgrade
+Operation = Install
+Operation = Remove
+Type = Package
+Target = *
+
+[Action]
+Description = Cleaning pacman cache, keeping 2 versions...
+When = PostTransaction
+Exec = /usr/bin/paccache -rk2