【问题标题】:ipkg/opkg how to install certain package by specified version?ipkg/opkg 如何按指定版本安装某些软件包?
【发布时间】:2016-05-14 08:41:34
【问题描述】:

当我打算通过 ipkg 在我的 NAS 上安装一些软件包时,我发现有多个版本,例如:

root@Nas:/opt/etc/init.d# ipkg list | grep openssl
openssl - 0.9.8v-2 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
openssl - 0.9.7m-6 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari

由于一些依赖问题,我需要 0.9.7 版本。但是,如果我只输入ipkg install openssl,它将始终安装后者,也就是 0.9.8,一个。

有人知道如何指定要安装的版本吗?

【问题讨论】:

    标签: nas opkg


    【解决方案1】:

    此功能是在 opkg 0.3.2 中引入的,取自 commit 消息:

    如果一个包的多个版本在一个 repo 中可用,opkg 默认 到最新的。要强制 opkg 使用不同的版本,语法 = 被使用。例如,在具有 'a' 的 1.0、2.0 和 3.0 版本,将安装以下命令 1.0版:

    opkg install a=1.0

    语法与 apt-get 使用的相同。

    Here's 问题和 0.3.2 的release notes

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-05-19
      • 2016-09-28
      • 2023-01-04
      • 1970-01-01
      • 2022-01-17
      • 1970-01-01
      相关资源
      最近更新 更多