denchenko

What unattended-upgrades actually does on Debian 13

2026-09-14

Installing the package is one line, but I always forget which parts are on by default and which are not.

apt install unattended-upgrades apt-listchanges
dpkg-reconfigure -plow unattended-upgrades

What gets installed

Out of the box only the -security origin is allowed (see Unattended-Upgrade::Origins-Pattern in /etc/apt/apt.conf.d/50unattended-upgrades). Point releases from the normal archive wait for a manual apt upgrade. Third-party repositories are ignored unless you add their origin to the pattern.

When it runs

Two systemd timers do the work: apt-daily.timer downloads, apt-daily-upgrade.timer installs, both with a randomized delay. systemctl list-timers 'apt-*' shows when they fire next; the log is in /var/log/unattended-upgrades/.

Reboots

A new kernel is installed but not booted. /var/run/reboot-required appears, and the machine keeps running the old kernel until someone reboots it. Unattended-Upgrade::Automatic-Reboot "true"; exists, but on a box other people use I prefer to pick the time myself.

Checking it did something

unattended-upgrade --dry-run --debug | tail
zgrep -h "Packages that will be upgraded" /var/log/unattended-upgrades/*