Skip to content

Instantly share code, notes, and snippets.

@matoken
Created April 23, 2019 12:59
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 matoken/19d289ebaefdf00d08b956af6994a859 to your computer and use it in GitHub Desktop.
Save matoken/19d289ebaefdf00d08b956af6994a859 to your computer and use it in GitHub Desktop.
diff --git a/apt/apt.conf.d/02periodic b/apt/apt.conf.d/02periodic
new file mode 100644
index 0000000..23d6105
--- /dev/null
+++ b/apt/apt.conf.d/02periodic
@@ -0,0 +1,32 @@
+// Control parameters for cron jobs by /etc/cron.daily/apt-compat //
+
+
+// Enable the update/upgrade script (0=disable)
+APT::Periodic::Enable "1";
+
+
+// Do "apt-get update" automatically every n-days (0=disable)
+APT::Periodic::Update-Package-Lists "1";
+
+
+// Do "apt-get upgrade --download-only" every n-days (0=disable)
+APT::Periodic::Download-Upgradeable-Packages "1";
+
+
+// Run the "unattended-upgrade" security upgrade script
+// every n-days (0=disabled)
+// Requires the package "unattended-upgrades" and will write
+// a log in /var/log/unattended-upgrades
+APT::Periodic::Unattended-Upgrade "1";
+
+
+// Do "apt-get autoclean" every n-days (0=disable)
+APT::Periodic::AutocleanInterval "21";
+
+
+// Send report mail to root
+// 0: no report (or null string)
+// 1: progress report (actually any string)
+// 2: + command outputs (remove -qq, remove 2>/dev/null, add -d)
+// 3: + trace on
+APT::Periodic::Verbose "2";
diff --git a/apt/apt.conf.d/20auto-upgrades b/apt/apt.conf.d/20auto-upgrades
index 773354b..c943d6a 100644
--- a/apt/apt.conf.d/20auto-upgrades
+++ b/apt/apt.conf.d/20auto-upgrades
@@ -1,2 +1,2 @@
-APT::Periodic::Update-Package-Lists "1";
-APT::Periodic::Unattended-Upgrade "0";
+#APT::Periodic::Update-Package-Lists "1";
+#APT::Periodic::Unattended-Upgrade "0";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment