Install latest Git on CentOS.

Install latest Git on CentOS.

Environment Information

  • CentOS release 6.6 (Final)

Install required modules

1
# yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker

Compile & Install

Please access the below url, get latest archive.
Official Repository

1
2
3
4
5
6
# cd /usr/local/src
# wget https://www.kernel.org/pub/software/scm/git/git-2.7.2.tar.gz
# tar xvf git-2.7.2.tar.gz
# cd git-2.7.2
# make prefix=/usr/local all
# make prefix=/usr/local install

Show git version.

1
2
3
# git --version

git version 2.7.2

Thank.

Author

Kenzo Tanaka

Posted on

2016-02-23

Licensed under

コメント