sudo dpkg-reconfigure --frontend noninteractive unattended-upgrades

Category: VPS Management

sudo dpkg-reconfigure --frontend noninteractive unattended-upgrades

Enable automatic security updates non-interactively

dpkg-reconfigure reruns a package's configuration step; for unattended-upgrades it flips on automatic security patching. The --frontend noninteractive flag answers its yes/no prompt with defaults so the command works in scripts. After this, the apt-daily-upgrade timer applies security updates nightly — check the log under /var/log/unattended-upgrades/.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.