Monday, October 23, 2017

How to install the GIT on OEL/Centos




$ sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel -y
$ sudo yum install gcc perl-ExtUtils-MakeMaker -y

Download the latest Git installation from kernel.org and unpack it

$ cd /usr/src
$ sudo wget https://www.kernel.org/pub/software/scm/git/git-2.10.2.tar.gz
$ sudo tar xzf git-2.10.2.tar.gz

Install it

cd git-2.10.2
sudo make prefix=/usr/local/git all
sudo make prefix=/usr/local/git install

Add it to path

$ export PATH=/usr/local/git/bin:$PATH

(add that line to ~/.bash_profile)

Test it, by checking the version

$ git --version

Regards
Gurudatta N.R

No comments:

Post a Comment