Skip to content

Instantly share code, notes, and snippets.

@jarfil
Created April 26, 2015 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarfil/0d9bb649dde903ea2c0f to your computer and use it in GitHub Desktop.
Save jarfil/0d9bb649dde903ea2c0f to your computer and use it in GitHub Desktop.
Check version of a package in available releases
#!/bin/bash
PKG="$1"
for f in stable testing unstable experimental ; do
echo -n "$f - "
apt-cache show $PKG/$f 2>/dev/null | grep "Version:" || echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment