How can I find out package versions available from repositories?


Use a command like apt-cache show package.

You could also just look at the repository.

| improve this answer | |

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

| improve this answer | |

Try apt-show-versions.

| 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$
| 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: http://www.debian.org/doc/manuals/reference/ch02.en.html#_basic_package_management_operations

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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