Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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-1.7.6.1.tar.bz2.

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?

Thanks!

share|improve this question

1 Answer 1

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
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 '11 at 0:08

Your Answer

 
discard

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.