ubuntu apt-get 安装指定版本软件

时间:2018-02-01 00:26:42   收藏:0   阅读:909
  • 有时候 Ubuntu安装软件时候会提示你缺少对应版本的软件,这时候你就需要用到 sudo apt-get install softname=version 来安装对应的软件。

    sudo apt-get install  openssh-client=1:6.6p1-2ubuntu1
    // 上面安装的是  1:6.6p1-2ubuntu1    openssh-client
  • 列出一个软件的版本的命令是 sudo apt-cache madison soft_name

    sudo apt-cache madison  openssh-client

    技术分享图片

  • 参考:

    https://www.cnblogs.com/EasonJim/p/7144017.html

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!