I’ve configured dnf-automatic
to download & install system updates weekly, restart the computer when needed (in /etc/dnf/automatic.conf
), fittingly on early Saturday morning. In the past I had daily security updates set up (separately), but the arrangement felt arduous since any kernel updates necessitate rebooting to my knowledge.
Flatpack and Python packages are updated after the system has rebooted (see this comment of mine for spawning a shell at boot on Gnome).
flatpak remove --unused && flatpak update -y
pipx upgrade-all
my dnf-automatic.timer
for reference:
# /etc/systemd/system/dnf-automatic.timer
[Unit]
Description=dnf-automatic timer
# See comment in dnf-makecache.service
ConditionPathExists=!/run/ostree-booted
Wants=network-online.target
[Timer]
OnCalendar=Sat *-*-* 3:00:00
RandomizedDelaySec=60m
Persistent=true
[Install]
WantedBy=timers.target