How to install latest version of git on CentOS release 6.8 (Final)?

Install latest version of git on CentOS release 6.8 -

Step 1. Install Dependencies - 
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils

Step 2. Get the latest version of git to your server -
cd /usr/src
wget https://www.kernel.org/pub/software/scm/git/git-2.10.0.tar.gz

Step 3. Extract the zip folder -  tar -xvzf git-2.10.0.tar.gz

Step 4. Compile the code -
cd git-2.10.0
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

Step5. Check git version - git --version

That's it!
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to run the backup process which is stuck using rsync?

While running the backup process, I was getting the error message as - /usr/bin/rsync -rlptD...

How to install FFMPEG CentOS?

ffmpeg is the most popular opensource video streaming software and its being used on many...

How to install ZendOpcache on CentOS?

The Zend OpCache provides faster PHP execution through opcode caching and optimization. It...

How to get files and folders from a remote server using FTP?

Let's make a quick start by looking at the various commands to get files and folders from a...

How to setup a WordPress website on plain Centos server?

The following steps have been successfully tested on a plain centos server. Now lets start...

Powered by WHMCompleteSolution