2

How can I find out package versions available from repositories?

jldugger
  • 14,342
  • 20
  • 77
  • 129
Andrey Kuznetsov
  • 169
  • 3
  • 12

5 Answers5

4

Use a command like apt-cache show package.

You could also just look at the repository.

Zoredache
  • 130,897
  • 41
  • 276
  • 420
4

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

ThorstenS
  • 3,122
  • 19
  • 21
1

Try apt-show-versions.

BillThor
  • 27,737
  • 3
  • 37
  • 69
0

For installed packages:

dpkg-query -l apache2

For packages available via apt:

apt-cache search ^apache2$
Mircea Vutcovici
  • 17,619
  • 4
  • 56
  • 83
0

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.

user38808
  • 199
  • 3