Git CentOS 源码安装

安装依赖包

1
2
3
4
5
6
7
8
9
10
11
12
yum install gcc
yum install curl
yum install curl-devel
yum install zlib-devel
yum install openssl-devel
yum install perl
yum install cpio
yum install expat-devel
yum install gettext-devel
yum install libcurl-devel
yum install autoconf
yum install perl-ExtUtils-Embed

下载最新的git包

https://github.com/git/git/releases 找到你需要的源码包,我现在最新的是2.10.2版本

1
2
3
4
5
6
7
wget https://github.com/git/git/archive/v2.10.2.tar.gz
tar xzvf v2.10.2.tar.gz
cd git-2.10.2
autoconf
./configure
make
sudo make install

1
git --version

收工

文章目录
  1. 1. 安装依赖包
  2. 2. 下载最新的git包
  3. 3. 收工
|