tips
7 tips Unattended-Upgrades
One command, setting or habit at a time about Unattended-Upgrades: what it does, the line to copy and a caveat or two.
Automatic updates 7
-
Keep automatic updates on while a few sensitive packages wait for you.
sudo nano /etc/apt/apt.conf.d/52unattended-upgrades-local -
Include packages from an extra repository in your automatic updates.
apt-cache policy -
Check the switch that turns daily automatic upgrades on.
cat /etc/apt/apt.conf.d/20auto-upgrades -
Hear about failed automatic updates without a daily message.
Unattended-Upgrade::Mail "[email protected]"; -
Move the automatic upgrade run to a quiet hour of your choosing.
sudo systemctl edit apt-daily-upgrade.timer -
Makes automatic updates restart the machine at a fixed night time when a reboot is needed.
Unattended-Upgrade::Automatic-Reboot "true"; -
Simulates an automatic update run and shows what it would install without changing anything.
sudo unattended-upgrade -v --dry-run
Nothing in this filter yet.