Our blog

 

Install Git on Centos 5 – Install EPEL on Centos

To install Git on a Centos server you need to install something called EPEL first.

This is an extra repository of apps which you need to have accessible in order to install Git.

I tried other tutorials on the net that were quite extensive but didn't work. In the end its just two commands:

1. Install EPEL:

CODE:
  1. rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F

2. Install Git + Git Daemon

CODE:
  1. yum install git git-daemon

For me to get it to work, I had to manually change the epel.repo file because I had created a non functional one previously. I got the warning:

warning: /etc/yum.repos.d/epel.repo created as /etc/yum.repos.d/epel.repo.rpmnew

So I just did the following:

CODE:
  1. cd /etc/yum.repos.d/
  2. mv epel.repo epel.repo.old
  3. mv epel.repo.rpmnew epel.repo

More Reading:

 

Leave a Reply