So, one of the boring tasks of being a sysadmin is to do updates. Well, it's not really boring, just a boring task of doing it if you have more than 10 systems or so.
Since I'm lazy and not really a sysadmin full-time, I'm cheating by using the
unattended-upgrades package. Here is how you do it:
- Install unattended-upgrades
- Add the following to /etc/apt/apt.conf
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
- See if you need to modify
/etc/apt/apt.conf.d/50unattended-upgrades
(I didn't) - Watch your logs for any errors during updates (I use logcheck for this)
- Read the additional info at https://wiki.ubuntu.com/AutomaticUpdates for more details about this feature if you want to.
So, one of the boring tasks of being a sysadmin is to do updates. Well, it's not really boring, just a boring task of doing it if you have more than 10 systems or so.
Since I'm lazy and not really a sysadmin full-time, I'm cheating by using the
unattended-upgrades package. Here is how you do it:
- Install unattended-upgrades
- Add the following to /etc/apt/apt.conf
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
- See if you need to modify
/etc/apt/apt.conf.d/50unattended-upgrades
(I didn't) - Watch your logs for any errors during updates (I use logcheck for this)
- Read the additional info at https://wiki.ubuntu.com/AutomaticUpdates for more details about this feature if you want to.
Automatically upgrade Debian with security updates