Install Git on RHEL5

We’ve started moving our development away from Subversion to Git and naturally we discovered that the RHEL5 repositories don’t have Git available so here are some instructions on how to install it.

1. Grab the latest version of Git source

wget http://kernel.org/pub/software/scm/git/git-1.7.5.4.tar.gz

2. Un-gunzip-tar it

tar xvfz http://kernel.org/pub/software/scm/git/git-1.7.5.4.tar.gz

3. Configure and build the package

cd ./git-1.7.5.4
./configure
make
make install

It’s worth noting that Git requires Zlib, so install a copy first if you don’t already have it.