eSGR Documentation

Difficulty
Easy

git

Goal

Compile the latest git, this guide assumes you are using the eSG provided installation.

Steps

Library Prerequisites

yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

EXPORTS used to set versions

You can change the values here to change compiled version.

GIT_VERSION=2.25.1

Fetch git

cd /usr/local
wget https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz
tar zxfv git-${GIT_VERSION}.tar.gz
cd git-${GIT_VERSION}

Build git

make prefix=/usr/local/git all

Install git

make prefix=/usr/local/git install

ln -s /usr/local/git/bin/git /usr/bin/git
ln -s /usr/local/git/bin/git-shell /usr/bin/git-shell
ln -s /usr/local/git/bin/git-receive-pack /usr/bin/git-receive-pack
ln -s /usr/local/git/bin/git-upload-archive /usr/bin/git-upload-archive
ln -s /usr/local/git/bin/git-upload-pack /usr/bin/git-upload-pack