How can I find out package versions available from repositories?

link|improve this question

75% accept rate
feedback

5 Answers

up vote 4 down vote accepted

Use a command like apt-cache show package.

You could also just look at the repository.

link|improve this answer
feedback

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

link|improve this answer
feedback

Try apt-show-versions.

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

For installed packages:

dpkg-query -l apache2

For packages available via apt:

apt-cache search ^apache2$
link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.