zoukankan      html  css  js  c++  java
  • CentOS 7.4升级curl和git到最新版本

    升级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
  • 相关阅读:
    Scala刮:使用Intellij IDEA写hello world
    翻译器DIY它———算在英文文本中的单词数,字符和行数
    ZOJ3605-Find the Marble(可能性DP)
    我不需要你喜欢我
    thinkphp5的auth权限认证(转自thinkphp官方文档+自己总结)
    程序员中一些老的程序员去哪了
    信息学竞赛学习资料整理
    m_Orchestrate learning system---二十九、什么情况下用数据库做配置字段,什么情况下用配置文件做配置
    按键精灵使用心得
    thinkphp5中的配置如何使用
  • 原文地址:https://www.cnblogs.com/zd520pyx1314/p/10244029.html
Copyright © 2011-2022 走看看