在 centos 6 上升级 curl:libcurl-7.50 需要 libnghttp2

在 centos 6 上升级 curl:libcurl-7.50 需要 libnghttp2

我正在尝试升级 curl 但仍然收到此错误:

软件包:libcurl-7.50.0-1.1.cf.rhel6.x86_64 (CityFan) 要求:libnghttp2.so.14()(64bit)

我不确定如何获取此必需的包?我正在使用city-fan.org-release-1-13.rhel6.noarchrepo

答案1

您正在使用第三方 city-fan 存储库。此存储库具有 EPEL 存储库中的依赖项,其中一个是 libnghttp2,因此您必须启用 EPEL 才能使用 city-fan。

答案2

这是我执行的完整命令集,因为 Michael Hampton 的回答不太清楚。此外,EPEL 安装说明的链接也指出了冗长且不必要的内容。

yum 安装 epel-release -y
rpm -Uvhhttp://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm
yum 更新 curl

更新网址 2020-08-19: http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-2-1.rhel6.noarch.rpm

相关内容