-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit.sh
More file actions
29 lines (25 loc) · 914 Bytes
/
git.sh
File metadata and controls
29 lines (25 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
#title : Install Git
#description :
#author : Mthun Technologies
#date : 08112012
#version : 1.0
#usage : sh gitInstall.sh
#CopyRights : Mithun Technologies
#Contact : 9980923226 | devopstrainingblr@gmail.com
# Below command will install the older version
#yum install git
sudo su -
cd /opt
yum groupinstall "Development Tools" -y
yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel curl-devel -y
yum install wget tar -y
##Open below URL and select the specific version and right click on that and click on Copy Link Address, then execute the wget command.
##https://github.com/git/git/releases
wget https://github.com/git/git/archive/v2.18.0.tar.gz -O git-bash.tar.gz
tar -zxf git-bash.tar.gz
cd git-2.18.0
make configure
./configure --prefix=/usr/local
make install
git --version