7.2 Automatic Kernel Patches

If security patches are not applied, your server can be exploited. These patches can be applied automatically.

sudo apt-get install unattended-upgrades -y
sudo apt-get install update-notifier-common -y
sudo nano /etc/apt/apt.conf.d/50unattended-upgrades

Change the line "Unattended-Upgrade::Automatic-Reboot" by removing any leading slashes and changed false to true.

   
// Automatically reboot *WITHOUT CONFIRMATION*
//  if the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true";

Some more information is available here.

When I logged on and before making this change I was told 65 packages can be updated. 46 updates are security updates.

The change should now keep my server up to date.

 

No comments:

Post a Comment

Introduction to Linux Command Line

SSH is the way you will connect to your Linux server. You will need to understand the basics of the Linux Command Line.