After running apt-get upgrade, I get a list of the packages that will be upgraded. I would like to know the version number for one of these packages. (Not the current one but the one that will be installed).

How do I get the version number of the packages to be installed?

up vote 36 down vote accepted
apt-cache show <packagename>

should include the full version numbers.

If you just want the version info without the description and such, use apt-cache policy instead of apt-cache show.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.