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

问题描述 投票:1回答:1

如何通过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!
shell ubuntu debian apt xenomai
1个回答
0
投票

这很有男子气概,因为 "madison "是一个debian工具,而不是ubuntu工具。请在以下情况下使用madison https:/qa.debian.orgmadison.php。

您的例子xenomai在这里可见 https:/qa.debian.orgmadison.php?package=xenomai&table=ubuntu。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.