Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Simple Question, I want to check if a specific programm = sp is installed on Ubuntu 12.04 server.

I dont want to for sudo apt-get sp and I can't check all folders. Is there a fast and good way?

share|improve this question
If the program was in .deb from, then dpkg will tell you dpkg -l | grep -i sp . If it wasn't in .deb from, try to locate its files sudo updatedb & locate -i sp – NikTh Aug 14 '13 at 9:41
up vote 2 down vote accepted

If your name sp refers to a package name, the correct procedure, imho, is to use

dpkg --get-selections sp

(dpkg -l provides an output adapted to the terminal width, and so can truncate package names, and it also reports non installed packages for which still exist config files)

If you name refer to an application name, the following could be useful (if using the default bash shell)

type sp
share|improve this answer
thanks : type sp worked – Private Aug 14 '13 at 9:49

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.