If you administer servers, you know the importance of keeping your packages up to date for security concerns.

In Ubuntu Server 18, this is carried out by editing the /etc/apt/apt.conf.d/50unattended-upgrades file. Let’s edit it with the following command:

## Changes to the file

There are only a few lines that need to be uncommented:

Special attention should be given to the last line, which will enable the update to automatically clean up old kernel packages. Without it, you can find yourself with a full boot partition, which has the nasty ability to halt any and all updates! I have faced this in the past and it can be a pain.

## My file contents

If you just want to copy and paste, here is my file, with these changes made.