我需要将cURL升级到Centos上的最新版本
2.6.18-164.15.1.el5.centos.plusxen#1 SMP Wed Mar 17 20:32:20 EDT 2010 x86_64 x86_64 x86_64 GNU / Linux
我无法通过yum或rpmfind适合的软件包。 有没有一个标准的方法来执行此升级,而无需从源代码安装?
这是一个老问题,但它仍然是谷歌search的第一个结果,所以我想发布解决scheme,让我的问题得到解决。
1)创build一个新文件/etc/yum.repos.d/city-fan.repo
2)粘贴以下内容:
[CityFan] name=City Fan Repo baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/ enabled=1 gpgcheck=0
3)types:
yum clean all yum install curl
4)完成了。
请注意,对于其他rhel / centos版本,您只需指定适当的城市粉丝url即可。
你为什么需要升级curl? 有没有一个特定的function,你错过了?
你可以直接从开发者那里得到它:
http://curl.haxx.se/download.html
向下滚动到Redhat(感谢twirrim)列表,find合适的RPM(基于RHEL5)并安装。
无法得到taksan的答案为我的设置工作是我用的
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 update curl
更多相关的答案可以在这里find升级curl6:libcurl-7.50需要libnghttp2
最新的稳定curlverison是7.22.0,但到目前为止,7.19.7-16是最新的CentOS。 所以你必须find一个能够提供最新版本的版本库,或者等待CentOS基础版本库来更新版本。
yum update curl
我find了你的回购:
http://download.fedora.redhat.com/pub/fedora/linux/development/rawhide/x86_64/os/Packages/?P=*curl*
您可以从上面的链接中获取libcurl和curls文件,然后rpm –Uvh packagename包名,安装libcurl,然后安装curls包。