Install the dependencies
yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel
Get the git source code
wget http://kernel.org/pub/software/scm/git/git-1.6.1.tar.gz
untar the git source code
tar xvfz git-1.6.1.tar.gz
Install
cd git-1.6.1.tar.gz
make prefix=/usr/local all
make prefix=/usr/local install






































[...] trackbacks yet. You must be logged in to post a comment. Install Git 1.6.1. on Centos 5.2 Amazon.com Widgets RSS [...]
thank you for this, it was very helpful.
Thank you, thank you, thank you. Extremely helpful (and it worked exactly as you had written – I just copied and pasted). I search for 30+ minutes before finding any helpful information on installing Git, and I was fortunate to be running the exact version of Centos listed here.
[...] http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/ [...]
Very useful post. I used it to install git 1.7.1 on CentOS.
Thanks
[...] http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52 [...]
[...] install git on CentOS? I find this manual. Is it [...]
[...] —參考文件 : http://rvm.beginrescueend.com/ http://anderson1029.pixnet.net/blog/post/25206292 http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/ http://www.howtoforge.com/install-nginx-on-centos-5.5-with-ssl-pcre-geoip-zlib-gzip-and-dav-support [...]
[...] Following directions from this site:http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/ [...]
[...] – Reference #1: http://www.how-to-linux.com/centos-52/install-git-161-on-centos-52/ [...]