Centos

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

  • August 20, 2020

我正在嘗試升級 curl 但不斷收到此錯誤:

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

我不知道如何獲得這個必需的包?我正在使用city-fan.org-release-1-13.rhel6.noarch回購

您正在使用第三方 city-fan 儲存庫。這個 repo 的依賴項位於 EPEL 儲存庫中,其中之一是 libnghttp2,因此您必須啟用 EPEL 才能使用 city-fan。

這是我執行的完整命令集,因為 Michael Hampton 的回答並不清楚。此外,指出的 EPEL 安裝說明的連結很長且不必要。

yum install epel-release -y

rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch。 rpm

yum 更新 curl

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

引用自:https://serverfault.com/questions/792394