1、安装repo
rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/city-fan.org-release-3-9.rhel7.noarch.rpm
该链接下载不了文件时,请通过以下方式获取:
http://www.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/
因该地址有来源限制,需复制该链接后,粘贴到其他浏览器打开,再搜索city-fan.org-release-开始的相关文件使用该链接
2、查看该 repo 包含的 curl 版本
yum --showduplicates list curl --disablerepo="*" --enablerepo="city*"
3、修改该repo的enable为1
vi /etc/yum.repos.d/city-fan.org.repo
4、yum命令安装curl
yum install curl