• You are here:
  • »
  • git

git

This is an old revision of the document!


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

/home/www/sites/esgr.in/wiki/data/attic/software/git.1582786757.txt.gz · Last modified: 2020/02/27 06:59 by eServices Greece