Find the version of package before installing in Ubuntu
apt-get -s install <package> Example: apt-get -s install php NOTE: This is only a simulation! apt-get needs root privileges for real execution. Keep also in mind that locking is deactivated, so don't depend on the relevance to the real current situation! Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: php-common php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-opcache php7.0-readline Suggested packages: php-pear The following NEW packages will be installed: php php-common php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json php7.0-opcache php7.0-readline 0 upgraded, 9 newly installed, 0 to remove and 35 not upgraded. Inst php-common (1:35ubuntu6.1 Ubuntu:16.04/xenial-updates [all]) Inst php7.0-common (7.0.30-0ubuntu0.16.04.1 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64]) Inst php7.0-json (7.0.30-0ubuntu0.16.04.1 Ub...