Step 1: Check for Available Security Updates
sudo apt update && sudo apt list --upgradable 2>/dev/null | grep securityStep 2: Apply Security Updates Only
sudo unattended-upgrades --dry-run
sudo unattended-upgradesStep 3: Apply All Updates (Recommended)
sudo apt upgrade -yStep 4: Reboot if Kernel Updated
if [ -f /var/run/reboot-required ]; then sudo reboot; fiStep 5: Verify Patch Level
sudo apt-show-versions | grep security