美文网首页
CentOS 7 更新 Git

CentOS 7 更新 Git

作者: 王诗翔 | 来源:发表于2019-09-21 15:04 被阅读0次

    原来简书能发文章了~~

    预备

    Sudo 权限

    CentOS 7 安装 Git

    1. 激活仓库

    /etc/yum.repos.d/wandisco-git.repo 输入

    [wandisco-git]
    name=Wandisco GIT Repository
    baseurl=http://opensource.wandisco.com/centos/7/git/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
    

    导入 GPG

    sudo rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
    
    1. 安装 Git
    sudo yum install git
    
    1. 查看是否安装成功
    git --version
    

    相关文章

      网友评论

          本文标题:CentOS 7 更新 Git

          本文链接:https://www.haomeiwen.com/subject/baheuctx.html