Server Fault is a question and answer site for system and network administrators. 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

I'm interested in installing Git on a CentOS Linux 5.4 host.

The installation instructions in the Pro Git book online offer two avenues: installing from source or using the host's package management system (in this case, yum).

However, neither is working for me.

Install from yum

When I try yum I get this result...

$ sudo yum install git-core
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
Setting up Install Process
No package git-core available.
Nothing to do

(Why would yum not find such a commonplace package? Does it have to do with being down?)

Install from source

The other option is to download the source.

The location of the latest stable version of Git, v1.7.6.1, given on the main Git website is

However that link leads to a page saying "down for maintenance". It appears that has been down for a couple weeks due to an attack.

Any suggestions?


share|improve this question
up vote 4 down vote accepted

The first is because CentOS only contains packages found in RHEL, and older versions of RHEL do not have Git. If you want Git via Yum then you will need to enable EPEL. Note that it does not necessarily contain the latest version though.

The second is... unfortunate, and there's not anything you can do about it. Stick to EPEL for now.

share|improve this answer
Thanks, that looks great. But hunting around among related questions, I found this guy mentioning rpmforge. Maybe I should go with that, as it comes directly from CentOS? – Agvorth Sep 17 '11 at 23:28
RPMForge is independent of CentOS. – Ignacio Vazquez-Abrams Sep 17 '11 at 23:29
Out of eagerness I enabled RPMForge. It seemed to work. It installed the current version of Git. Thanks for the help! – Agvorth Sep 18 '11 at 0:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.