Skip to content

Instantly share code, notes, and snippets.

@tomfanning
Last active November 9, 2017 10:37
Show Gist options
  • Save tomfanning/60be2e261fd220692689 to your computer and use it in GitHub Desktop.
Save tomfanning/60be2e261fd220692689 to your computer and use it in GitHub Desktop.
Steps in Ubuntu to enable totally automatic updates with auto reboot
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