Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
software:git [2016/12/23 03:34]
eServices Greece created
software:git [2021/11/16 09:36]
eServices Greece
Line 1: Line 1:
-===== git ===== +{{tag>git guide compile development}} {{howhard>2}} 
-==== Goal ====+====== git ====== 
 +===== Goal =====
 Compile the latest git, this guide assumes you are using the eSG provided installation.  Compile the latest git, this guide assumes you are using the eSG provided installation. 
  
-=== Steps === +==== Steps ==== 
-== Building Pre requisites ==+=== Library Prerequisites ===
 <sxh> <sxh>
-yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker+yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
 </sxh> </sxh>
  
-== Fetch git ==+==== EXPORTS used to set versions ==== 
 +You can change the values here to change compiled version. 
 +<sxh> 
 +GIT_VERSION=2.34.0 
 +</sxh> 
 + 
 +=== Fetch git ===
 <sxh> <sxh>
 cd /usr/local cd /usr/local
-wget https://www.kernel.org/pub/software/scm/git/git-2.11.0.tar.gz +wget https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz 
-tar zxfv git-2.11.0.tar.gz +tar zxfv git-${GIT_VERSION}.tar.gz 
-cd git-2.11.0+cd git-${GIT_VERSION}
 </sxh> </sxh>
  
-== Build git ==+=== Build git ===
 <sxh> <sxh>
 make prefix=/usr/local/git all make prefix=/usr/local/git all
 </sxh> </sxh>
  
-== Install git ==+=== Install git ===
 <sxh> <sxh>
 make prefix=/usr/local/git install make prefix=/usr/local/git install
 +</sxh>
 +
 +=== symlink to default locations (Warning) ===
 +<sxh>
 +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
 </sxh> </sxh>