Ubuntu automatic unattended upgrades

As seen in Windows with its automatic updates one can perform such action for Ubuntu as well.

Simply install the corresponding package

sudo apt-get install unattended-upgrades

Here we see how it works

dpkg -L unattended-upgrades

/etc/logrotate.d/unattended-upgrades
/etc/apt/apt.conf.d/50unattended-upgrades


It's done by the cron job an some setting in

/etc/apt/apt.conf.d/50unattended-upgrades

Here on can configure what updates are safe to become installed automatically.

One can also setup a email address in this config file for informations when updates were driven.

Unattended-Upgrade::Mail "yourname@yourdomain.tld";

Did it work for you. Just drop a comment.

1 comment:

Anonymous said...

works awesome thx mate