Centos 安装 git

安装依赖包
yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel


cd /usr/local/src


下载 git
wget http://kernel.org/pub/software/scm/git/git-1.7.0.tar.gz


tar xzvf git-1.7.0.tar.gz


cd git-1.7.0


make prefix=/usr/local all


make prefix=/usr/local install

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