---
title: "Unattended upgrades in Ubuntu"
url: "http://andrewbolster.info/2012/06/unattended-upgrades-in-ubuntu/"
date: "2012-06-13T15:13:56Z"
tags: ["Automation","Ubuntu"]
---

\_Never having to think about updates again _ is a good thing in my head, so here’s how to set up Unattended Upgrades under Ubuntu for fun and profit. `$ sudo apt-get install unattended-upgrades`

`$sudo vim /etc/apt/apt.conf.d/50unattended-upgrades`

Uncomment the line `// "${distro_id}:${distro_codename}-updates";`

`$ sudo vim /etc/apt/apt.conf.d/10periodic`

Make it look like this

`APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "1"; APT::Periodic::AutocleanInterval "7"; APT::Periodic::Unattended-Upgrade "1";`
