Skip to Content
MvpDots

Keeping it healthy

Read the news, clean caches automatically, and know how to roll back.

  • Read the news before updating. informant blocks pacman -Syu until you have read new Arch news items.
  • Old packages: a pacman hook runs paccache -rk2 after every transaction (keeps two versions) → files/paccache.hook in 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

/etc/pacman.d/hooks/paccache.hook (new file)
+[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

On this page