dnf5

1 HOWTO · all tags

  1. Snapper restore points on Fedora (Btrfs) with auto snapshots before every dnf transaction

    Install and configure snapper on a Fedora Btrfs-on-LUKS system to create filesystem restore points: a root config with hourly timeline snapshots and auto-cleanup, plus automatic pre/post snapshots around every dnf transaction. Fedora 44 uses dnf5, which has no snapper plugin, so the dnf hook is wired up with the libdnf5 'actions' plugin calling a small wrapper script that labels snapshots by operation (dnf install / upgrade / remove). Covers what a root config does and does not capture on Fedora's multi-subvolume layout, why /.snapshots belongs in a top-level subvolume rather than nested inside root, and — the part most guides get wrong — why 'snapper rollback' cannot work on a Fedora install that pins subvol=root in fstab and on the kernel command line, with the subvolume-swap procedure that does.