Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had recently installed a version of VMWare Workstation that I had to uninstall and to look for instructions about doing so I came across this thread.

It stated writing this command to see if there was any version of VMWare Workstation installed:

vmware-installer -l

So what I want to know is, just like the quoted command for VMWare, how do I know about other commands that exist to let me know if a particular product is installed on my computer or not?

Thanks for looking in.

share|improve this question
Possible duplicate:… – SirCharlo May 31 '12 at 15:05

Type in a terminal:

dpkg --list | grep -i name-of-application
share|improve this answer
Any chance you could break down the structure of the command to explain the semantics of the syntax? – Programming Noob May 31 '12 at 15:20
Search (grep) "name-of-application" ignoring case (-i) in (|) the output provided by "dpkg --list". Try "dpkg --list" alone to understand. – jasmines May 31 '12 at 15:27

Using aptitude

If a package was installed using the package manager, running the following command will display packages that are installed and that contain the word keyword in their name:

aptitude search '~i keyword'


aptitude search '~i samba'

This returns the following list of packages on my system:

i   samba                                                                  - SMB/CIFS file, print, and login server for Unix
i   samba-common                                                           - common files used by both the Samba server and client
i   samba-common-bin                                                       - common files used by both the Samba server and client
i   system-config-samba                                                    - GUI for managing samba shares and users

The i stands for installed.

Using which

You can also use which if you know the name of the executable you are searching for; it will return executable-name's path if it is installed, and nothing otherwise.

which executable-name


which system-config-samba

This returns the following on my system:


I therefore know that system-config-samba is installed, and I know where.

share|improve this answer
Oh good. Thanks. That means it would require me to know the exact identifier of the program I'm looking for right? And what if I did not use aptitude? In this case, I had installed VMWare from a .bundle file. – Programming Noob May 31 '12 at 15:21
Yes, you would need to know the name of the executable file that you are looking for. – SirCharlo May 31 '12 at 15:49

mm you can also try to install again the application ($ sudo apt-get install "the name of the app) and if it is really installed it will appear "(the name of the program) it's already at the lastest version"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.