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

阅读 80

2022-01-11

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)

0 0 举报