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 install AVG Antivirus scanner on Ubuntu?

AVG free is antivirus which protects from spyware as well malware. It is free to use for private...

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...

How to change the port number of Apache Web Server?

Default port to access the Apache is 80. Secure port for communicating with world for Apache is...

How to install Postfix on CentOS?

Postfix is an open-source Mail Transport Agent (MTA), which supports protocols like LDAP, SMTP...

How to install SOAP on CentOS?

Install SOAP on CentOS 1) Fire below command - yum install php-soap Output will be as follow...

Powered by WHMCompleteSolution