Super User is a question and answer site for computer enthusiasts and power users. 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

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
up vote 4 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .