Installing Git on CentOS 4.6

March 29, 2008

I currently have a VPS that has CentOS installed and went to install Git via Yum, but it didn't seem to have it in the default repos. I've tracked down the following repos and you just need to follow the steps below to get it installed:

 $ sudo touch /etc/yum.repos.d/atrpms.repo /etc/yum.repos.d/dag.repo

And then you need to copy the following repository definitions into their respective files:

[atrpms]
name=ATrpms for Enterprise Linux $releasever - $basearch
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
enabled=0
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms

[dag]
name=Dag
enabled=0
baseurl=http://dag.freshrpms.net/redhat/el4/en/$basearch/dag
http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el4/en/i386/dag/
gpgcheck=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

Once this is done all you'll have to run is the following command and git will be installed:

$ yum --enablerepo=dag --enablerepo=atrpms install git
powered by viviti