Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
software:git [2016/12/23 03:34] eServices Greece created |
software:git [2021/11/16 09:36] (current) eServices Greece |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== git ===== | + | {{tag> |
- | ==== 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 |
</ | </ | ||
- | == Fetch git == | + | ==== EXPORTS used to set versions ==== |
+ | You can change the values here to change compiled version. | ||
+ | < | ||
+ | GIT_VERSION=2.34.0 | ||
+ | </ | ||
+ | |||
+ | === Fetch git === | ||
<sxh> | <sxh> | ||
cd /usr/local | cd /usr/local | ||
- | wget https:// | + | wget https:// |
- | tar zxfv git-2.11.0.tar.gz | + | tar zxfv git-${GIT_VERSION}.tar.gz |
- | cd git-2.11.0 | + | cd git-${GIT_VERSION} |
</ | </ | ||
- | == Build git == | + | === Build git === |
<sxh> | <sxh> | ||
make prefix=/ | make prefix=/ | ||
</ | </ | ||
- | == Install git == | + | === Install git === |
<sxh> | <sxh> | ||
make prefix=/ | make prefix=/ | ||
+ | </ | ||
+ | |||
+ | === symlink to default locations (Warning) === | ||
+ | <sxh> | ||
+ | ln -s / | ||
+ | ln -s / | ||
+ | ln -s / | ||
+ | ln -s / | ||
+ | ln -s / | ||
</ | </ |