标签归档:git

CentOS 下安装 Git

现在都流行Git分布式版本控制系统,但CentOS无法直接通过yum安装,一大遗憾。手工安装步骤如下:

1、首先安装Git依赖的一些包.

yum install -y zlib-devel
yum install -y openssl-devel
yum install -y perl
yum install -y cpio
yum install -y expat-devel
yum install -y gettext-devel
yum install -y curl

2、下载Git并安装它

wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar xzvf git-latest.tar.gz
cd git-{date}
autoconf
./configure --with-curl
make
make install