在使用apt-get安装软件包之前如何检查版本 [英] How to check the version before install packages using apt-get

查看:570
本文介绍了在使用apt-get安装软件包之前如何检查版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑安装上个月在我的 Debian PC上发布的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆