我正在考虑安装hylafax+ 5.5.4版本,上个月在我的Debian PC上发布。
我查了dpkg -l | grep“hylafax”,发现现在的版本是5.5.3。然后我检查了apt-cache搜索hylafax,看到包是可用的,但我看不到任何版本号。
如何在apt-get中找到可用的软件包版本?
我正在考虑安装hylafax+ 5.5.4版本,上个月在我的Debian PC上发布。
我查了dpkg -l | grep“hylafax”,发现现在的版本是5.5.3。然后我检查了apt-cache搜索hylafax,看到包是可用的,但我看不到任何版本号。
如何在apt-get中找到可用的软件包版本?
当前回答
此外,根据手册页:
apt-cache showpkg <package_name>
也可用于:
...display information about the packages listed on the command line. Remaining arguments are package names. The available versions and reverse dependencies of each package listed are listed, as well as forward dependencies for each version. Forward (normal) dependencies are those packages upon which the package in question depends; reverse dependencies are those packages that depend upon the package in question. Thus, forward dependencies must be satisfied for a package, but reverse dependencies need not be.
例子:
apt-cache policy conky
conky:
Installed: (none)
Candidate: 1.10.3-1
Version table:
1.10.3-1 500
500 http://us.archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu yakkety/universe i386 Packages
其他回答
在debian上:
apt list --upgradable
给出包含包、要升级的版本和包的实际版本的列表。
结果:
base-files/stable 8+deb8u8 amd64 [upgradable from: 8+deb8u7]
bind9-host/stable 1:9.9.5.dfsg-9+deb8u11 amd64 [upgradable from: 1:9.9.5.dfsg-9+deb8u9]
ca-certificates/stable 20141019+deb8u3 all [upgradable from: 20141019+deb8u2]
certbot/jessie-backports 0.10.2-1~bpo8+1 all [upgradable from: 0.8.1-2~bpo8+1]
dnsutils/stable 1:9.9.5.dfsg-9+deb8u11 amd64 [upgradable from: 1:9.9.5.dfsg-9+deb8u9]
apt policy <package>
在短
Linux Mint, Debian 9, Ubuntu 16.04及更老版本:
短信息:
apt policy <package_name>
详细信息(与描述和视情况而定):
apt show <package_name>
此外,根据手册页:
apt-cache showpkg <package_name>
也可用于:
...display information about the packages listed on the command line. Remaining arguments are package names. The available versions and reverse dependencies of each package listed are listed, as well as forward dependencies for each version. Forward (normal) dependencies are those packages upon which the package in question depends; reverse dependencies are those packages that depend upon the package in question. Thus, forward dependencies must be satisfied for a package, but reverse dependencies need not be.
例子:
apt-cache policy conky
conky:
Installed: (none)
Candidate: 1.10.3-1
Version table:
1.10.3-1 500
500 http://us.archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu yakkety/universe i386 Packages
好的,我找到了。
Apt-cache policy <package name>将显示版本详细信息。
它还显示当前安装的版本以及可安装的版本。
例如,apt-cache策略hylafax+