Skip to content

Instantly share code, notes, and snippets.

@jarpy
Last active August 29, 2015 14:16
Show Gist options
  • Save jarpy/8b209615563c4cb2bec9 to your computer and use it in GitHub Desktop.
Save jarpy/8b209615563c4cb2bec9 to your computer and use it in GitHub Desktop.
Count outstanding upgrades on a Debian/dpkg/Aptitude system.
aptitude safe-upgrade --simulate --assume-yes | awk -F ' ' '/[0-9]+ packages upgraded/ {print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment