Git: Installing Git on Centos 5
April 15th, 2009 by jeremychoneMake 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”
May 2nd, 2009 at 1:45 pm
Hi,
You seem to have confused the elrepo.org and EPEL repositories. They are not one and the same.
May 4th, 2009 at 3:31 pm
@Phil, you are right. Fixed it. Tx.
May 5th, 2009 at 10:26 am
Only 50% fixed, so far.
“Make sure the git package comes from elrepo and not RPMForge.”
sed ’s/elrepo/epel/’ please.
May 5th, 2009 at 8:06 pm
@Alan, tx, fixed it. I think I am at 100% now. Wow, that was hard
June 11th, 2010 at 6:05 pm
[...] not work. Then I found this blog which gave instruction on how to do [...]