升级curl和git到最新版本
[root@jenkins ~]# yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
[root@jenkins ~]# cd /usr/src/
[root@jenkins ~]# wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.xz
[root@jenkins ~]# tar -xf git-2.18.0.tar.xz
[root@jenkins ~]# cd git-2.18.0/
[root@jenkins ~]# make prefix=/usr/local/git all
[root@jenkins ~]# make prefix=/usr/local/git install
[root@jenkins ~]# cd /usr/bin/
[root@jenkins ~]# mv git git.bak
[root@jenkins ~]# ln -s /usr/local/git/bin/git git
[root@jenkins ~]# git --version
git version 2.18.0
[root@jenkins ~]# rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/curl-7.63.0-4.0.cf.rhel7.x86_64.rpm
[root@jenkins ~]# rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-2-1.rhel7.noarch.rpm
[root@jenkins ~]# yum --showduplicates list curl --disablerepo="*" --enablerepo="city*"
yum --showduplicates list curl --disablerepo="*" --enablerepo="city*"
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* city-fan.org: www.city-fan.org
* city-fan.org-debuginfo: www.city-fan.org
* city-fan.org-source: www.city-fan.org
Installed Packages
curl.x86_64 7.63.0-4.0.cf.rhel7 @city-fan.org
Available Packages
curl.x86_64 7.63.0-4.0.cf.rhel7 city-fan.org
[root@jenkins ~]# vim /etc/yum.repos.d/city-fan.org.repo
[city-fan.org]
name=city-fan.org repository for Red Hat Enterprise Linux (and clones) $releasever ($basearch)
#baseurl=http://mirror.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch
mirrorlist=http://mirror.city-fan.org/ftp/contrib/yum-repo/mirrorlist-rhel$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-city-fan.org
....
[root@jenkins ~]# rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libnghttp2-1.31.1-1.el7.x86_64.rpm
[root@jenkins ~]# yum install curl
[root@jenkins ~]# curl -V
curl 7.63.0 (x86_64-redhat-linux-gnu) libcurl/7.63.0 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.31.1
Release-Date: 2018-12-12
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy PSL Metalink