CentOS6.6升级curl至最新版本

1.安装repo

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

2.查看repo包含的curl版本

yum --showduplicates list curl --disablerepo="*" --enablerepo="city*"

yum --showduplicates list curl --disablerepo="*" --enablerepo="fan*"

3.根据看到的版本安装最新curl

yum install  "curl-7.61.0-6.0.cf.rhel6.x86_64" --disablerepo="*"  --enablerepo="city*"

4.安装过程如libnghttp2报错执行

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/l/libnghttp2-1.6.0-1.el6.1.x86_64.rpm

5.继续3步骤后可查看curl版本

curl -V

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容