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

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

问题描述

我正在考虑安装 hylafax+ 5.5.4 版,该版本上个月在我的 Debian PC.

I'm thinking to install hylafax+ version 5.5.4 which was release last month on my Debian PC.

我检查了 dpkg -l |grephylafax",发现当前版本是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 将显示版本详细信息.

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天全站免登陆