0
点赞
收藏
分享

微信扫一扫

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

小月亮06 2022-01-11 阅读 80

1、查看当前git版本

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

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

3、导入存储库GPG密钥

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

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

yum install git -y

[root@Inboc-Gitlab-Runner builds]# git --version
git version 2.31.1
举报

相关推荐

0 条评论