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

I try to use

apt-cache search gedit

But there is no information about version.

I am trying to install gedit 2.30.4 (by default it is 3.x on Gnome 3). But there is no gedit with this version.

sudo apt-get install gedit=2.30.4
#=> Error

So how can I figure out which versions are in repo?

share|improve this question
The = in your command seems suspicious. I'd expect a -. – Rinzwind May 6 '11 at 10:56
I read manuals about it and there was equal sign = for version – fl00r May 6 '11 at 10:57
up vote 6 down vote accepted

The policy command of apt-cache displays the current installed and available versions.

apt-cache policy gedit
share|improve this answer
That's it. Thank you! – fl00r May 6 '11 at 10:55

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.