How to show the available version of a package (before doing apt-get install)
![](https://www.dev-metal.com/wp-content/uploads/2013/08/ubuntu.png)
To show the version of the package that will be installed with apt-get install, do apt-cache policy packagename. To show the currently available version(s) of PHP5, do:
apt-cache policy php5