Setting up Debian unattended upgrades

2 Comments

My standard setup (on Debian stable/Lenny):

aptitude install unattended-upgrades

cat > /etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
^D

cat >> /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Mail "example@example.com";
^D

It’s as easy as that. [More details in the Ubuntu Wiki]

syaman

Hi is there a reason for placing Unattended-Upgrade::Mail in a separate file, or can it also be in 10periodic?

Thanks in advance

2010-06-13 5:23 pm

Aidan Findlater

The separation is just a convention for ease of organization, such that all settings that begin with APT::Periodic are in 10periodic and all that begin with Unattended-Upgrade are in 50unattended-upgrades (50periodic was a typo in the original post).

If you want to put them all in the same, that should work fine. It just means that you’ll be deviating from the community convention, which might (or might not) complicate things down the line.

2010-06-14 11:59 am