brite, a MVC Framework for jQuery

Git: Installing Git on Centos 5

April 15th, 2009 by jeremychone

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

> yum install git

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:

> yum install 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:

[main]
enabled=1

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”

5 Responses to “Git: Installing Git on Centos 5”

  1. Phil Says:

    Hi,

    You seem to have confused the elrepo.org and EPEL repositories. They are not one and the same.

  2. jeremychone Says:

    @Phil, you are right. Fixed it. Tx.

  3. Alan Says:

    Only 50% fixed, so far.

    “Make sure the git package comes from elrepo and not RPMForge.”

    sed ‘s/elrepo/epel/’ please. ;-)

  4. jeremychone Says:

    @Alan, tx, fixed it. I think I am at 100% now. Wow, that was hard ;)

  5. Installing Git in CentOS using yum « Thinking Mind Says:

    [...] not work. Then I found this blog which gave instruction on how to do [...]