Last active
November 9, 2017 10:37
-
-
Save tomfanning/60be2e261fd220692689 to your computer and use it in GitHub Desktop.
Steps in Ubuntu to enable totally automatic updates with auto reboot
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-get autoremove && apt-get update | |
apt-get install unattended-upgrades update-notifier-common | |
dpkg-reconfigure --priority=low unattended-upgrades | |
# choose yes | |
nano /etc/apt/apt.conf.d/50unattended-upgrades | |
# set Unattended-Upgrade::Remove-Unused-Dependencies "true"; | |
# set Unattended-Upgrade::Automatic-Reboot "true"; | |
# force install, using old config file if original is modified | |
# resolves "Package 'x' has conffile prompt and needs to be upgraded manually" | |
Dpkg::Options { | |
"--force-confdef"; | |
"--force-confold"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment