当前位置:   article > 正文

在CentOS 7系统中使用YUM升级git版本_centos7 使用yum升级git

centos7 使用yum升级git

1、查看当前git版本

[root@Inboc-Gitlab-Runner builds]# git --version
git version 1.8.3.1
  • 1
  • 2

2、配置git

cat >> /etc/yum.repos.d/wandisco-git.repo << EOF
[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
EOF
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

3、导入存储库GPG密钥

rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco
  • 1

4、安装新版本git并查看版本

yum install git -y

[root@Inboc-Gitlab-Runner builds]# git --version
git version 2.31.1
  • 1
  • 2
  • 3
  • 4
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/584257
推荐阅读
相关标签
  

闽ICP备14008679号