CentOS 7.6 编译安装 Git 2.x.x
卸载旧版本Git$ yum remove -y git
下载Git源码包$ wget --no-check-certificate https://www.kernel.org/pub/software/scm/git/git-2.36.2.tar.gz
安装依赖包$ yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel$ yum install -y gcc perl-ExtUtils-MakeMaker# 解决 SSL connect error$ yum update -y nss curl libcurl
编译安装新版本Git# 解压缩软件包$ tar -zxvf git-2.36.2.tar.gz$ cd git-2.36.2# 创建要安装的目录$ mkdir -p /usr/local/git# 编译安装$ ./configure --prefix=/usr/local/git$ make && make install
添加环境变 ...