Created
June 15, 2015 10:41
-
-
Save josketres/22c61066c941401e6f57 to your computer and use it in GitHub Desktop.
Install newest git on CentOS 6
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
# from https://www.digitalocean.com/community/tutorials/how-to-install-git-on-a-centos-6-4-vps | |
# added curl-devel - https://stackoverflow.com/questions/8329485/git-clone-fatal-unable-to-find-remote-helper-for-https/13018777#13018777 | |
TMPDIR=/data/tmp | |
sudo yum install zlib-devel perl-ExtUtils-MakeMaker asciidoc xmlto openssl-devel curl-devel | |
cd ~ | |
wget -O git.zip https://github.com/git/git/archive/master.zip | |
unzip git.zip | |
rm git.zip | |
cd git-master | |
make configure | |
./configure --prefix=/usr/local | |
make all doc | |
sudo make install install-doc install-html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment