CentOS 7.4升級curl和git到最新版本
阿新 • • 發佈:2019-01-09
升級curl和git到最新版本
[[email protected] ~]# yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker [[email protected] ~]# cd /usr/src/ [[email protected] ~]# wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.18.0.tar.xz [[email protected]~]# tar -xf git-2.18.0.tar.xz [[email protected] ~]# cd git-2.18.0/ [[email protected] ~]# make prefix=/usr/local/git all [[email protected] ~]# make prefix=/usr/local/git install [[email protected] ~]# cd /usr/bin/ [[email protected] ~]# mv git git.bak [[email protected] ~]# ln -s /usr/local/git/bin/git git [[email protected] ~]# git --version git version 2.18.0 [[email protected] ~]# 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 [[email protected] ~]# rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-2-1.rhel7.noarch.rpm [[email protected]~]# 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 [[email protected] ~]# 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 .... [[email protected] ~]# rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libnghttp2-1.31.1-1.el7.x86_64.rpm [[email protected] ~]# yum install curl [[email protected] ~]# 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