2016-05-14 514 views
0

当我正想通过ipkg来对我的NAS安装一些包,我发现有多个版本,如:ipkg/opkg如何按指定版本安装某些软件包?

[email protected]:/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。

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

回答

0

此功能在opkg 0.3.2介绍,从commit消息采取:

如果一个包的几个版本都提供回购,opkg默认 到最新版本。要强制opkg使用不同的版本,使用语法 =。例如,在具有1.0 版本,2.0和“a”的3.0回购,下面的命令将安装1.0 版本:

opkg安装= 1.0

的语法是通过易于使用的相同的-得到。

Here's问题和0.3.2的release notes

相关问题