Error: Failed dependencies while downgrading libcurl

Error: Failed dependencies while downgrading libcurl

我正在尝试将 Linux Red Hat 6 中的 libcurl 版本从 7.54.0 降级到 7.52.1。

我运行:

[root@fossa yhchai]# sudo rpm -Uvh http://nervion.us.es/city-fan/yum-repo/rhel6/x86_64/curl-7.52.1-1.0.cf.rhel6.x86_64.rpm

它给了我一个失败的依赖错误:

Retrieving http://nervion.us.es/city-fan/yum-repo/rhel6/x86_64/curl-7.52.1-1.0.cf.rhel6.x86_64.rpm
error: Failed dependencies:
        libcurl(x86-64) = 7.52.1-1.0.cf.rhel6 is needed by curl-7.52.1-1.0.cf.rhel6.x86_64

请各位大侠指教和解决,谢谢。

您必须同时降级(curllibcurl)软件包。如果你有更多的依赖,你也必须降级它们。这里有几个选项:

如果您安装了 yum,那么就安装,

 ~]# yum downgrade curl libcurl

 ~]# yum downgrade curl-7.52.1-1.0.cf.rhel6 libcurl-7.52.1-1.0.cf.rhel6

先把这两个包下载到一个目录下mydir,

~]# cd mydir
~]# wget http://nervion.us.es/city-fan/yum-repo/rhel6/x86_64/curl-7.52.1-1.0.cf.rhel6.x86_64.rpm
~]# wget http://nervion.us.es/city-fan/yum-repo/rhel6/x86_64/libcurl-7.52.1-1.0.cf.rhel6.x86_64.rpm

然后,

~]# rpm -Uvh *curl*.rpm