How install git on CentOS? I find this manual. Is it good?
5 Answers
yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel
cd /usr/local/src
wget http://kernel.org/pub/software/scm/git/git-1.7.5.tar.gz
tar xzvf git-1.7.5.tar.gz
cd git-1.7.5
make prefix=/usr/local all
make prefix=/usr/local install
yum install git-core
-
No Match for argument: git-core– Pavel DruzyakFeb 23, 2010 at 15:07
-
2You need to add repository, here's how to do this: wiki.centos.org/AdditionalResources/Repositories/RPMForge– QwertyFeb 23, 2010 at 15:26
Note everyone: git comes in the stranded centos 6 repos but for 5 you will need EPEL or freshmeat etc or from source.
I provide RPMs for git 1.7 in the Webtatic repository, as the kernel.org RPM's are incompatible with CentOS's old rpm installer.