Automated Security Updates on Debian Based Systems

Automated Security Updates on Debian Based Systems

Ignoring security updates is a time-honoured tradition right up until the moment it isn’t. Rather than waiting for a reminder from an attacker, running unattended security updates on Debian based server or inside a Proxmox LXC quietly handles the boring but essential patching for you. It applies security fixes automatically, leaves the rest of your packages alone, and keeps detailed logs so you can confirm nothing dramatic occurred. You keep full control of the system, avoid paying for someone else’s “managed” layer, and gain the small but satisfying comfort of knowing your server is less likely to keep you up at 3 a.m.

Requirements

Instructions

1. Clone the repository and enter the directory

git clone https://github.com/dey-d/Auto-Update-Debian.git
cd Auto-Update-Debian

2. Make the script executable

chmod +x auto-update.sh

3. Run the script

sudo ./auto-update.sh

4. Verify

After running the script, you can manually verify the configuration:

sudo unattended-upgrades --dry-run --debug

You can also check logs at:

/var/log/unattended-upgrades/