使用apt-get安装软件包之前如何检查版本? [英] How to check the version before installing a package using apt-get?
问题描述
我正在考虑安装 hylafax + 版本5.5.4,该版本已于上个月在我的
I'm thinking to install hylafax+ version 5.5.4 which was release last month on my Debian PC.
我检查了dpkg -l | grep "hylafax"
,发现当前版本为5.5.3.然后我检查了apt-cache search hylafax
并看到了可用的软件包,但是看不到任何版本号.
I checked dpkg -l | grep "hylafax"
and found out that the current version is 5.5.3. Then I checked apt-cache search hylafax
and saw the packages are available, but I can't see any version number.
如何在apt-get
中找到可用的软件包版本?
How can I find the version of packages available in the apt-get
?
推荐答案
好的,我找到了.
apt-cache policy <package name>
将显示版本详细信息.
apt-cache policy <package name>
will show the version details.
它还显示了当前安装的版本以及可以安装的版本.
It also shows which version is currently installed and which versions are available to install.
例如apt-cache policy hylafax+
这篇关于使用apt-get安装软件包之前如何检查版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!