apt policy

apt policy command show information about a package.

root@ok-vm:~# apt policy  apache2
apache2:
  Installed: 2.4.18-2ubuntu3.5
  Candidate: 2.4.18-2ubuntu3.5
  Version table:
 *** 2.4.18-2ubuntu3.5 500
        500 http://azure.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.4.18-2ubuntu3 500
        500 http://azure.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
root@ok-vm:~#

It shows the installed version “Installed: 2.4.18-2ubuntu3.5” and the repo from where it is installed.

See apt

Advertisement

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement