Install latest git on CentOS 7.0

On CentOS 7.0, you won’t get the latest git with this command:

yum install git 

To get latest git, download it from github first:

wget https://github.com/git/git/archive/master.zip
unzip master.zip

Install dependent packages:

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

Then, compile and install:

cd git-master
make configure
./configure
make
make install

Now, check if it is well installed:

[root@localhost ~]# git version
git version 2.7.0.GIT

Enjoy the latest GIT!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.