在Centos上安装git

先安装git依赖的包
yum install zlib-devel
yum install openssl-devel
yum install perl
yum install cpio
yum install expat-devel
yum install gettext-devel

安装autoconf
yum install autoconf

 

http://git-scm.com/
安装git
wget http://kernel.org/pub/software/scm/git/git-1.7.3.2.tar.bz2
tar jxvf git-latest.tar.bz2
cd git-{date}
autoconf
./configure --with-curl=/usr/local
make & make install

你可能感兴趣的:(Date,centos,git)