美文网首页
CentOS 6.5 升级安装 git 过程记录

CentOS 6.5 升级安装 git 过程记录

作者: penggy | 来源:发表于2018-08-14 15:31 被阅读0次
yum remove git

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install  gcc perl-ExtUtils-MakeMaker
cd /usr/src
wget https://www.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
tar xzf git-2.9.5.tar.gz

cd git-2.9.5
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo 'export PATH=$PATH:/usr/local/git/bin' >> /etc/profile
source /etc/profile

git --version

相关文章

网友评论

      本文标题:CentOS 6.5 升级安装 git 过程记录

      本文链接:https://www.haomeiwen.com/subject/cvdvbftx.html