Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How install git on CentOS? I find this manual. Is it good?

share|improve this question

migrated from Sep 3 '10 at 12:07

This question came from our site for professional and enthusiast programmers.

closed as not a real question by random Mar 15 '12 at 20:49

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Not programming question - and have you tried? It looks fine. – user28457 Feb 23 '10 at 14:51
This is the server on which the application is running right now, so I'm afraid to experiment. – Pavel Druzyak Feb 23 '10 at 15:06
yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel
cd /usr/local/src
tar xzvf git-1.7.5.tar.gz
cd git-1.7.5
make prefix=/usr/local all
make prefix=/usr/local install
share|improve this answer

Add the EPEL repository, then install it using yum.

share|improve this answer

yum install git-core

share|improve this answer
No Match for argument: git-core – Pavel Druzyak Feb 23 '10 at 15:07
You need to add repository, here's how to do this: – Qwerty Feb 23 '10 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.

share|improve this answer

I provide RPMs for git 1.7 in the Webtatic repository, as the RPM's are incompatible with CentOS's old rpm installer.

share|improve this answer