⌨️Unattended Upgrades
Also known as unattended-upgrades, Automatic Security Updates, Auto Updates (Ubuntu)
A tool that puts in safety fixes by itself. It runs each day.
Think of it like
Think of it like a cleaner who comes every night. You wake up and the house is fixed.
Example
A flaw is found in a tool on Jack's server. That night, unattended upgrades installs the fix before Jack has read the news.
Why it matters
Most break-ins use flaws that already have a fix. Daily updates close that gap.
Definition
Example code
console
$ cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";Common mistake
Key takeaways
- 1Daily. Runs once a day by itself.
- 2Security first. Only safety fixes by default.
- 3Restart still needed. Some fixes wait for a reboot.