In this guide we are about to start with how to install Git on Centos, RHEL, Oracle 6 Linux versions.

Install the required dependencies

# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel -y

# yum install gcc perl-ExtUtils-MakeMaker -y

Download the latest git tar file from

# cd /usr/local/

# wget

Extract under /usr/local/

# tar -zxvf git-2.11.0.tar.gz
# cd git-2.11.0

Compile and install

# make prefix=/usr/local/git all
# make prefix=/usr/local/git install
# echo “export PATH=$PATH:/usr/local/git/bin” >> /etc/bashrc
# source /etc/bashrc

Check for the version using

# git –version

We have done with installing Git from

Babin Lonston
Overall 14+ Years of experience in IT field, 7+ years of experience in Linux administration with Virtualization & Cloud technologies. Love documentation and being Numismatics for a long time.

Adding exclusion list for Symantec NetBackup client Backup

Previous article

Granting Access control List (ACL) for a user on a file in Solaris 11

Next article

You may also like


Leave a reply

Your email address will not be published.