Last active
February 5, 2020 21:00
-
-
Save filipsedivy/c77d7b97e2a650542ac167f56cc73335 to your computer and use it in GitHub Desktop.
Debian 9, 10 configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::Unattended-Upgrade "1"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unattended-Upgrade::Origins-Pattern { | |
"o=Debian,a=stable"; | |
"o=Debian,a=stable-updates"; | |
"o=Debian,a=proposed-updates"; | |
"origin=Debian,codename=${distro_codename},label=Debian-Security"; | |
}; | |
Unattended-Upgrade::Package-Blacklist { | |
"linux-image*" | |
}; | |
Unattended-Upgrade::Automatic-Reboot "false"; | |
Unattended-Upgrade::Remove-Unused-Dependencies "true"; | |
Unattended-Upgrade::AutoFixInterruptedDpkg "true"; | |
Unattended-Upgrade::SyslogEnable "true"; | |
Unattended-Upgrade::SyslogFacility "daemon"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
touch /etc/apt/apt.conf.d/20auto-upgrades | |
curl -L https://gist.github.com/filipsedivy/c77d7b97e2a650542ac167f56cc73335/raw/apt_50unattended-upgrades > /etc/apt/apt.conf.d/50unattended-upgrades | |
curl -L https://gist.github.com/filipsedivy/c77d7b97e2a650542ac167f56cc73335/raw/apt_20auto-upgrades > /etc/apt/apt.conf.d/20auto-upgrades | |
unattended-upgrade --debug --dry-run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment