Jump to content

Linux server administration/apt/Automatic updates

From Wikiversity

Package: unattended-upgrades

You can configure and control automatic updates modifying:

  • enable or disable: /etc/apt/apt.conf.d/20auto-upgrades [1]
  • /etc/apt/apt.conf.d/50unattended-upgrades[2]
cat /etc/apt/apt.conf.d/50unattended-upgrades | grep -v // | grep .

Or disabling systemd related services:

sudo systemctl disable apt-daily.service
sudo systemctl disable apt-daily.timer

sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.service

Check status: systemctl list-unit-files | grep apt-daily

  • List upgradable: apt list updated && apt list --upgradable
  • Review package changelog: apt changelog PACKAGE_NAME

See also

[edit | edit source]
  1. https://help.ubuntu.com/lts/serverguide/automatic-updates.html
  2. https://wiki.debian.org/UnattendedUpgrades