Tag Archives: apt-cache policy

How to find if a specific package(program) is Installed

If you want to find, that a specific program is installed or not on Ubuntu, then there is a really good command:

apt-cache policy <package-name> (no sudo needed)

Which tells you the install software with it’s version number as well,if not then which version is availabe on the repository.

If it is not installed:

If it is installed:

Or

dpkg: dpkg -l | grep <package name>

When it’s not installed won’t show output. When it is, it’ll show something like:

Credit for this post goes to Oli Warner.

Hope this will help you!

Please Remember me in your prayers!

Advertisements
%d bloggers like this: