apt-get dpkg
How to find all available versions of a package in dpkg, apt-get or aptitude?
如何在dpkg, apt -get或aptitude中找到软件包的所有可用版本?
To list available versions of a package:
列出软件包的可用版本:
apt-cache showpkg <package-name>
For example, to check all versions of thunderbird:
例如,要检查所有版本的雷鸟:
$ sudo apt-cache showpkg thunderbird
Package: thunderbird
Versions:
1:31.1.1+build1-0ubuntu0.14.04.1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-updates_main_binary-amd64_Packages) (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages
MD5: 68ed1001b79d708ad48956a0c129114d
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
MD5: 68ed1001b79d708ad48956a0c129114d
1:31.0+build1-0ubuntu0.14.04.1 (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages
MD5: 68ed1001b79d708ad48956a0c129114d
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
MD5: 68ed1001b79d708ad48956a0c129114d
1:24.4.0+build1-0ubuntu1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages
MD5: 68ed1001b79d708ad48956a0c129114d
Description Language: en
File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
MD5: 68ed1001b79d708ad48956a0c129114d
Reverse Depends:
....
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
apt-get dpkg