Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I find out package versions available from repositories?

share|improve this question

5 Answers 5

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
1  
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.

e.g.

aptitude search ~npackage_name_regex~dtext_in_description

See section 2.2.6. in the Reference Manual: http://www.debian.org/doc/manuals/reference/ch02.en.html#_basic_package_management_operations

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

share|improve this answer

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.