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:
-
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
2. Install Git + Git Daemon
-
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:
-
cd /etc/yum.repos.d/
-
mv epel.repo epel.repo.old
-
mv epel.repo.rpmnew epel.repo
RSS Feed