Friday, November 15, 2013

Installing Git on CentOS 5

I was working with an older version of CentOS today and found out that the git repositories didn't exist. So just a quick note on getting git set up on CentOS 5.

Install the dependencies
yum install gcc gettext-devel expat-devel curl-devel zlib-devel openssl-devel

Get the latest git tarball. The latest for me was git-1.8.4.3.tar.gz
wget https://www.kernel.org/pub/software/scm/git/git-1.8.4.3.tar.gz

Untar the tarball
tar -xvfz git-1.8.4.3.tar.gz

Make...profit.
cd git-1.8.4.3

make prefix=/usr/local all

make prefix=/usr/local install

No comments:

Post a Comment