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
- A Debian based system.
- Auto update script https://github.com/dey-d/Auto-Update-Debian
Instructions
1. Clone the repository and enter the directory
git clone https://github.com/dey-d/Auto-Update-Debian.git
cd Auto-Update-Debian2. Make the script executable
chmod +x auto-update.sh3. Run the script
sudo ./auto-update.sh4. Verify
After running the script, you can manually verify the configuration:
sudo unattended-upgrades --dry-run --debugYou can also check logs at:
/var/log/unattended-upgrades/