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: mirror.team-cymru.org
 * extras: centos.mirrors.tds.net
 * updates: ftp.osuosl.org
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 Kernel.org 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 http://kernel.org/pub/software/scm/git/git-

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

Any suggestions?


1 Answer 1


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.

  • 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, 2011 at 23:28
  • RPMForge is independent of CentOS. Sep 17, 2011 at 23:29
  • 1
    Out of eagerness I enabled RPMForge. It seemed to work. It installed the current version of Git. Thanks for the help!
    – Agvorth
    Sep 18, 2011 at 0:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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