PDA

View Full Version : [ubuntu] how do i know an application is installed or not in through terminal



sandhu987
October 22nd, 2008, 06:14 PM
Hi
I want to know whether java is installed in my system or not?Moreover i want to know whether a particular application is installed in my system or not........

Orlsend
October 22nd, 2008, 06:21 PM
Alt+F2 and type the Name and if its there it will tell you.

You know if Java is installed if you have a link under System>preference> *java should be here*

scragar
October 22nd, 2008, 06:22 PM
dpkg -l | grep pakage name
will list packages matching a pattern that are installed, honestly though, the easiest way to test for java is to try it:

java -version
will either display:


bash: java: command not found
or something like
java version "1.6.0_0"
OpenJDK Runtime Environment (build 1.6.0_0-b11)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)