Make sure you have the EPEL Repository installed in your yum repository, do the following:
> rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Install Git with
You should get something like:
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
git x86_64 1.5.5.6-2.el5 epel 3.5 M
Installing for dependencies:
perl-Error noarch 1:0.17010-1.el5 epel 26 k
perl-Git x86_64 1.5.5.6-2.el5 epel 16 k
Transaction Summary
=============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 3.5 M
Is this ok [y/N]: y
Make sure the git package comes from EPEL and not RPMForge. If it comes from RPMForge, then, install yum-priorities:
Make sure that yum-priorities is enabled by editing the /etc/yum/pluginconf.d/priorities.conf file, and ensuring that it contains the following lines:
Add a priority=3 line in the /etc/yum.repos.d/rpmforge.repo
Add a priority=1 lines in each of the three repo sections in the /etc/yum.repos.d/elrepo.repo
Then, do the “yum install git”