Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
software:git [2016/12/23 03:38]
eServices Greece
software:git [2020/02/27 06:59]
eServices Greece [EXPORTS used to set versions]
Line 5: Line 5:
  
 ==== 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> 
 + 
 +==== EXPORTS used to set versions ==== 
 +You can change the values here to change compiled version. 
 +<sxh> 
 +GIT_VERSION=2.25.1
 </sxh> </sxh>
  
Line 13: Line 19:
 <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>
  
Line 26: Line 32:
 <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>