Install Git on Centos 5 - Install EPEL on Centos
Aug 25, 2010 · 1 minute readCategory: git
This is post is now quite old and the the information it contains may be out of date or innacurate.
If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub
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:
- Install EPEL: ```
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
<a href="http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F">http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F</a>
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
```