系统相关
首页 > 系统相关> > centos7安装高版本git

centos7安装高版本git

作者:互联网

git获取地址:

https://github.com/git/git/releases
https://www.kernel.org/pub/software/scm/git/

1.安装依赖

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel 
yum install gcc-c++ perl-ExtUtils-MakeMaker

yum remove git

2.下载高版本git,并且安装

wget https://www.kernel.org/pub/software/scm/git/git-2.7.3.tar.gz

tar -zxvf git-2.7.3.tar.gz
cd git-2.7.3
./configure --prefix=/usr/local/git
make && make install

ln -s /usr/local/git/bin/git /usr/bin/git

 

标签:git,https,tar,devel,centos7,usr,版本,2.7
来源: https://www.cnblogs.com/ahgo/p/16088210.html