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

Leave a Reply