Created
April 26, 2015 00:26
-
-
Save jarfil/0d9bb649dde903ea2c0f to your computer and use it in GitHub Desktop.
Check version of a package in available releases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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