Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.