Enable automatic security updates on VPS servers to ensure systems are patched against known vulnerabilities.
What This Skill Does
This skill helps AI agents configure automatic security updates on Ubuntu/Debian-based VPS servers. Every piece of software has vulnerabilities - patches fix them. If you're not patching, you're running known-vulnerable software that attackers have pre-built exploits for.
Key capabilities:
Update package lists and upgrade installed packages
Configure unattended-upgrades for automatic security patches
Set up automatic reboot schedules when required
Verify update configuration and status
When to Use
Use this skill when you need to:
Set up a new VPS server with automatic updates
Harden an existing server against known vulnerabilities
Ensure compliance with security patching requirements
Reduce manual maintenance overhead
Fix security audit findings related to outdated packages
Critical understanding: A server that's been up for 400 days isn't impressive - it's concerning. Regular updates and reboots are essential for security.
Prerequisites
Root or sudo access to the server
Ubuntu or Debian-based Linux distribution
Internet connectivity for package downloads
SSH access to the server
Installation & Configuration
Step 1: Update System Packages
First, update the package list and upgrade all installed packages:
sudo apt update && sudo apt upgrade -y
What this does:
apt update - Refreshes the package index from repositories
apt upgrade -y - Installs available updates without prompting
Step 2: Install Unattended Upgrades
Install the unattended-upgrades package:
sudo apt install unattended-upgrades -y
Step 3: Configure Unattended Upgrades
Enable automatic updates using the configuration tool:
sudo dpkg-reconfigure unattended-upgrades
Select "Yes" when prompted to enable automatic updates.
Alternative manual configuration:
Edit /etc/apt/apt.conf.d/50unattended-upgrades to customize: