danielinsley.com

Installing Git on CentOS 4.6

2008.03.29

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 and git will be installed in a snap:

$ 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

Comments

howdy. Thanks for this. i just got a new account at go grid. these instructions worked great and best of all they were simple.

As far as linux goes, there is no better feeling then typing git and hitting tab, to reveal the "show all 142 possibilites?" message.

keep it up dude!

Add comment

About me

I'm a 23 year old Software Developer from British Columbia, Canada. I currently have the privilege of writing Ruby full time at viviti.com. I enjoy spending my time with my family, programming, watching hockey, and listening to all kinds of music!

Daniel Insley's Linkedin Profile