Skip to content

Instantly share code, notes, and snippets.

@cupen
Last active December 15, 2017 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cupen/fa1be16c75533b9121480ad15c512de9 to your computer and use it in GitHub Desktop.
Save cupen/fa1be16c75533b9121480ad15c512de9 to your computer and use it in GitHub Desktop.
install latest git from souce in centos 7
# 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