Last active
December 15, 2017 07:20
-
-
Save cupen/fa1be16c75533b9121480ad15c512de9 to your computer and use it in GitHub Desktop.
install latest git from souce in centos 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://git-scm.com/book/en/v2/Getting-Started-Installing-Git | |
# compilre requirements. | |
yum install dh-autoreconf curl-devel expat-devel gettext-devel \ | |
openssl-devel perl-devel zlib-devel | |
yum install asciidoc xmlto docbook2X getopt perl-ExtUtils-MakeMaker | |
# do it. | |
wget https://github.com/git/git/archive/v2.15.1.tar.gz | |
tar xvf v2.15.1.tar.gz | |
cd git-2.15.1 | |
make configure | |
./configure --prefix=/usr/local/opt/git-2.15.1 | |
make all doc info | |
sudo make install install-doc install-html install-info | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment