Cheat Sheets

Security - Pending Updates

Description

There should be no pending security updates. This check uses aptitudes which needs to be installed.

Check Script: security-pending-updates3.sh

#!/bin/bash

pkgs=$(aptitude search '?and(~U,~Asecurity)' -F "%p=%V" --disable-columns) if [ "$pkgs" != "" ]; then result_warning "Security upgrades pending:" $pkgs else result_ok fi
Comment on Disqus