Docs Updates and snapshots All pages

Updates and snapshots

lunarc update (or Update in the menu) updates everything, in this order:

  1. the package keyrings, so signatures check out even after a long gap;
  2. Arch and Lunarc packages, with a snapshot of the system taken just before and after;
  3. AUR apps, separately, so a broken AUR package never stops the system update;
  4. Flatpak apps, if you have any.

At the end it says what changed, which snapshot to go back to, and whether to restart for a new kernel.

A newer Hyprland release than the one Lunarc's settings were tested with is held back (with its libraries) until a Lunarc update says it's tested; lunarc update --all takes it anyway. lunarc update check lists what's waiting without installing. lunarc update auto-check on checks once a day by itself (off by default).

Security fixes can arrive on their own. lunarc update security install (or System › Security fixes: automatic, or the first-login choice) installs an update by itself when an installed package has a high or critical CVE whose fix is out, usually within hours: on mains power, not on a metered connection, with a snapshot before and after like any update, and a notification afterwards (restart when it says a new kernel was installed). lunarc update security notify only tells you, with an Update button; the bar's menu button shows a red dot while one waits. Either way it reads one public file, the security feed, every six hours; lunarc update security shows what's waiting, off turns it off. Apps from the AUR and Flatpak still update with lunarc update. pacman's output is in colour; lunarc update candy on draws its progress bars as Pac-Man eating dots (off to stop).

If an update breaks something: lunarc update snapshots lists the snapshots, and lunarc update rollback <number> puts the system back as it was in that snapshot, then you restart. Your files, /home and logs are not touched. The replaced system is kept until lunarc update rollback --clean.

If an update stops the computer from starting: in the boot menu, open Snapshots and pick the state from before that update. It starts normally, but changes you make there are kept in memory only. To make it the system again, click Keep this version in the notification (or run lunarc boot snapshots keep), then restart. lunarc boot snapshots lists what's in the menu; lunarc boot snapshots next <number> starts one at the next restart without the menu.

Lunarc's packages come from https://pkgs.lunarclinux.com and must be signed by the Lunarc key.

If an update fails

Before it starts, lunarc update checks three things and stops with one plain message if something's off:

  • No internet. "You're offline": connect to Wi-Fi from the bar (or run nmtui). If you're connected but nothing loads, it's often a Wi-Fi login page: open a browser to sign in.
  • The clock is wrong. Package signatures carry a date, so a wrong clock (common right after a BIOS update or a dead battery) makes every signature look invalid. It turns on network time and waits for it; if the clock is still off, it shows the right time and offers to set it.
  • The Lunarc key isn't trusted. It sets the key up again from the installed keyring.

lunarc update doctor runs these checks on their own. If a signature error still shows up, the usual causes are, most likely first: the clock, the key (sudo pacman-key --populate lunarc), or an update being published at that moment (try again in a minute).

From the Lunarc manual: getting-started.md