Unattended-Upgrade::Automatic-Reboot "true" # Some updates require a reboot to load in their changes, if you don't want to monitor this yourself then enable automatic reboots # packages if you have changed a configuration file that the package now has an updated version of. #Duplicacy upgrading update## This has potential to break things but without it the server won't be able to automatically update # Use new configs where available but if there is a conflict always keep the current configs. # How often to carry out various tasks, 7 is weekly, 1 is daily, 0 is neverĪPT::Periodic::Download-Upgradeable-Packages "1" Unattended-Upgrade::Remove-Unused-Dependencies "true" # Remove packages that should no longer be required (this helps avoid filling up /boot with old kernels) Unattended-Upgrade::MailOnlyOnError "true" # Send email to root but only if there are errors (this requires you to have root email set-up to go somewhere) #Duplicacy upgrading install#You can create the following as /etc/apt//99auto-upgrades: # Install updates from any repo (not just the security repos) We would suggest creating a new file and overwriting the variables you want to set rather than changing files that are managed by the package. The default configuration will install updates from the security repository 20auto-upgrades defines that updates should be taken daily. The 50unattended-upgrades config file has the default settings and some useful comments. Once unattended-upgrades is installed you can find the configs in /etc/apt//. sudo apt-get install unattended-upgrades update-notifier-common On some recent operating systems unattended-upgrades will already be installed. Make sure you have installed unattended-upgrades and update-notifier-common (in order to better determine when reboots are required). If you want complete control of updates you may need to disable unattended-upgrades, see the manual updates section below. We’ve already discussed manual patching vs auto patching, most of this post will assume you’d like to set-up automatic updates. Unattended-upgrades is a package for Ubuntu and Debian based systems that can be configured to update the system automatically. Especially when it comes to security updates. Making sure software is kept up to date is very important.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |