Mastodon Mastodon - Unattended upgrades in Debian/Ubuntu
 logo
  • Home 
  • Tags 
  • Blog posts 
  1. Home
  2. Blog posts
  3. Unattended upgrades in Debian/Ubuntu

Unattended upgrades in Debian/Ubuntu

Posted on July 15, 2021  (Last modified on July 11, 2024) • 1 min read • 82 words
Linux   Linux: Debian   Linux: Ubuntu  
Linux   Linux: Debian   Linux: Ubuntu  
Share via
Link copied to clipboard

If you want to automatically install package upgrades on a Debian/Ubuntu server system - there’s an app for that. First, install the package:

apt-get install unattended-upgrades apt-listchanges

Then configure the package by editing (Ubuntu) /etc/apt/apt.conf.d/50unattended-upgrades:

// /etc/apt/apt.conf.d/50unattended-upgrades without comments
// my version
Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}";
	"${distro_id}:${distro_codename}-security";
	"${distro_id}ESMApps:${distro_codename}-apps-security";
	"${distro_id}ESM:${distro_codename}-infra-security";
	"${distro_id}:${distro_codename}-updates";
};
Unattended-Upgrade::Package-Blacklist {
};
Unattended-Upgrade::DevRelease "false";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Automatic-Reboot "true";
Unattended-Upgrade::Automatic-Reboot-Time "02:00";

Apparently in Debian there are a couple more ways to achieve the same goal, this one works pretty well for me.

 Convert RAW files on a Mac using "sips"
Set DNS search path on Unifi USG with DHCP 
In case you want to follow me

Here are some links. The further to the right, the less active.

           
(c) Axel Bock | Powered by Hinode.
Code copied to clipboard