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!
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.