Centos7.9使用第三方仓库来安装高版本的git

添加第三方仓库(使用 Wandisco 仓库)

[root@localhost ~]# git --version
git version 1.8.3.1

yum install -y https://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm

yum clean all && yum makecache && yum repolist

yum install -y git

升级后的git版本
[root@localhost ~]# git --version
git version 2.41.0
posted @ 2025-04-10 17:35  哈喽哈喽111111  阅读(87)  评论(0)    收藏  举报