【问题标题】:How to know the version of some package to be installed by apt-get in advance?如何提前知道apt-get要安装的某个包的版本?
【发布时间】:2020-08-10 00:46:48
【问题描述】:

如何提前知道apt-get要安装的某个包的版本?

我明白了,我可以通过使用 apt-cache madison 来实现。 但是我一直都不能很好地工作,例如,xenomai 包。 详情见下文。

##sucessfully
ubuntu:~$ apt-cache madison libcurl3
      libcurl3 | 7.47.0-1ubuntu2.14 | http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 Packages
      libcurl3 | 7.47.0-1ubuntu2.14 | http://mirrors.aliyun.com/ubuntu xenial-security/main amd64 Packages
      libcurl3 | 7.47.0-1ubuntu2 | http://mirrors.aliyun.com/ubuntu xenial/main amd64 Packages
    ubuntu:~$

##failed
ubuntu:~$ apt-cache madison xenomai
ubuntu:~$ #no output indeed!

【问题讨论】:

  • apt-cache policy libcurl3
  • 是的,你是对的。它有效。

标签: shell ubuntu debian apt xenomai


【解决方案1】:

这是有男子气概的,因为“madison”是一个 debian 工具,而不是一个 ubuntu 工具。
请始终使用 madison https://qa.debian.org/madison.php

您的示例 xenomai 可见此处
https://qa.debian.org/madison.php?package=xenomai&table=ubuntu

【讨论】:

  • 你的意思是我不应该在 ubuntu 中使用 apt-cache madison 而在 qa.debian.org/madison.php 上使用 madison。对吗?
猜你喜欢
  • 2014-06-23
  • 2020-06-12
  • 2013-09-24
  • 2016-09-28
  • 2019-12-09
  • 1970-01-01
  • 2020-05-28
  • 1970-01-01
相关资源
最近更新 更多