Skip to content

Instantly share code, notes, and snippets.

@dakira
Last active October 25, 2019 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dakira/134bbebd0298791d9e55 to your computer and use it in GitHub Desktop.
Save dakira/134bbebd0298791d9e55 to your computer and use it in GitHub Desktop.
unattended upgrade configuration

needed packages: update-notifier-common unattended-upgrades

/etc/apt/apt.conf.d/10periodic

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";

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

// Automatically upgrade packages from these (Origin:Suite) pairs
// available in the *Release* file of a repository, e.g.
// http://repo.steampowered.com/steam/dists/precise/Release or
// https://dl.google.com/linux/chrome/deb/dists/stable/Release
Unattended-Upgrade::Allowed-Origins {
	"${distro_id}:${distro_codename}-security";
	"${distro_id}:${distro_codename}-updates";
//	"${distro_id}:${distro_codename}-proposed";
	"${distro_id}:${distro_codename}-backports";
	"LP-PPA-snwh-pulp:${distro_codename}";
	"LP-PPA-numix-ppa:${distro_codename}";
	"Canonical:${distro_codename}";
	"Google LLC:stable";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment