CentOS 6.x/7.x上安装git及最新版
文章目录
- 步骤1. 安装依赖包
- yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
- yum install gcc perl-ExtUtils-MakeMaker
- yum remove git
- cd /usr/src
- wget https://www.kernel.org/pub/software/scm/git/git-2.5.0.tar.gz
- tar -zxvf git-2.5.0.tar.gz
- cd git-2.5.0
- make prefix=/usr/local/git all
- make prefix=/usr/local/git install
- echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
- source /etc/bashrc
- git --version
转载请注明文章来源
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭