2

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.

muru
  • 207,228
Programming Noob
  • 1,169
  • 7
  • 16
  • 23

3 Answers3

3

Type in a terminal:

dpkg --list | grep -i name-of-application
ish
  • 141,990
jasmines
  • 11,311
2

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'

Example

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

Example

which system-config-samba

This returns the following on my system:

/usr/sbin/system-config-samba

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

SirCharlo
  • 40,096
0

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"

Mauri Olivares
  • 219
  • 1
  • 2
  • 5