Server Fault is a question and answer site for system and network administrators. 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

How can I find out package versions available from repositories?

share|improve this question
up vote 4 down vote accepted

Use a command like apt-cache show package.

You could also just look at the repository.

share|improve this answer

apt-cache policy $PACKAGE shows every packageversion available for installation.

share|improve this answer

Try apt-show-versions.

share|improve this answer
Note, apt-show-version may not be installed on all distributions by default. – mctylr Apr 14 '10 at 2:27

For installed packages:

dpkg-query -l apache2

For packages available via apt:

apt-cache search ^apache2$
share|improve this answer

Aptitude is Debian's current recommended package manager (see Lenny Release Notes) and amongst other things is great for searching available and installed packages.


aptitude search ~npackage_name_regex~dtext_in_description

See section 2.2.6. in the Reference Manual:

However, use 'apt-cache policy' to show package versions.

share|improve this answer

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.