Unattended Upgrades
2012/01/16 Leave a comment
We are managing a number of Debian servers in the office, for various internal applications. Initially, it was a simple matter of upgrading the servers manually. However, as the number of servers grew, the amount of repetitive apt-get upgrade commands that need to be entered became tedious.
Unattended-upgrades to the rescue!
Fortunately for Debian Squeeze, it is already packaged in the repository and installation is a simple matter of:
# apt-get install unattended-upgrades
However, what most guides do not tell you is that there is an additional step that is required to be done before it will automagically work. We need to configure apt to actually trigger the unattended upgrades. It is not triggered by default.
To do this, just issue a:
# dpkg-reconfigure unattended-upgrades
Answer yes when prompted whether to “Automatically download and install stable updates” as in the screen below:

That does it!
PS: To make it even friendlier, I have also configured each server to send an email to the system administrator whenever a system is updated.

I was invited to be a guest judge for the Engineering Fair 2011 at Taylor’s University today. The fair is a showcase for the first year and third year projects of the various engineering students at Taylor’s. After finishing with the judging work, I went around to have a look at the projects personally.
Recent Comments