centos7.9 yum安装新版本git
centos 7.9 自带 git 版本太旧(1.8),可以使用 yum 方式安装新版本。
升级方式如下:
yum install epel-release
yum remove git
rpm -U http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum install git
- 国外源,安装可能有点慢,截止当前(2022.07.13)这个源能安装的最新版本为:2.31.1