Nearly all of my Virtual machines are running with Debian Linux and to provide them automatically with the latest security fixes, I am using Debian’s Unattended Upgrades. To install unattended-upgrades, I am using the following command line:
By default, only Security-related packages are upgraded which is for my use-case okay. In the configuration file /etc/apt/apt.conf.d/50unattended-upgrades I am adjusting some settings.
For example I want to have an Email notification for upgrades or problems or a Logging to my syslog server. To accomplish this, I am changing some limes in this configuration file like shown below:
Afterwards I am running the command dpkg-reconfigure -plow unattended-upgrades to ensure the automatic upgrades are activated.