CentOS — 安装Git客户端

CentOS中yum里没有Git,需要手动安装。

首先需要安装git的依赖包

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

下载最新的git包

wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar xzvf git-latest.tar.gz
cd git-xxxx-xx-xx
autoconf
./configure
make | make install

验证是否安装成功:检查安装的版本

git –-version

 

 

 

posted @ 2012-10-26 16:47  Old  阅读(2804)  评论(0编辑  收藏  举报