Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Ubuntu 9.10

I am wondering what apt-cache show emacs.

However, it gives information about emacs but doesn't show if it is currently installed or not.

How can I find if a package and version is currently installed?

Many thanks,

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Use dpkg:

dpkg -s emacs

there is also dpkg-query which allows you to use wildcards in your search:

dpkg-query -l '*emacs*'
share|improve this answer
    
I did try aptitude show emacs. This is a snippet: "State: not installed" –  ant2009 Dec 9 '09 at 4:58
    
didn't know about dpkg-query; i've always just used dpkg -l | grep emacs or similar. –  quack quixote Dec 9 '09 at 5:52

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.