[Debian] Unattended Updates

What are unattended updates

Unattended updates is a service within Linux that will automatically download and install updates on your Linux Machine allowing your Server to stay up to date.

how to install and configure unattended updates

From your SSH console type:

apt-get install unattended-upgrades

once complete you will need to modify the conf file for the unattended updates

vi /etc/apt/apt.conf.d/50unattended-upgrades

// Automatically upgrade packages from these (origin, archive) pairs

Unattended-Upgrade::Allowed-Origins {

 //       "${distro_id} stable";

        "${distro_id} ${distro_codename}-security";

//      "${distro_id} ${distro_codename}-updates";

//      "${distro_id} ${distro_codename}-proposed-updates";


comment out stable to avoid updates on core services that you do not want to modify and leave security uncommented to ensure security updates are applied.

to start the service run the command below

 /etc/init.d/unattended-upgrades start

Was this article helpful?
0 out of 0 found this helpful