Cheat Sheets

Security - Pending Updates

Description

There should be no pending security updates. This check uses apt-show-versions which needs to be installed.

Check Script: security-pending-updates2.sh

pkgs=$(apt-show-versions 2>/dev/null | grep 'security upgradable' | cut -d: -f 1)
if [ "$pkgs" != "" ]; then
	result_warning "Security upgrades pending: $pkgs"
else
	result_ok
fi
Comment on Disqus