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*"
3、修改该repo的enable为1
vi /etc/yum.repos.d/city-fan.org.repo
4、安装最新的curl
yum install curl
5、如果提示缺少依赖 libnghttp2.so.14()(64bit),运行以下命令,然后重复第四步
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/l/libnghttp2-1.6.0-1.el6.1.x86_64.rpm
6、查看curl版本
curl -V