Created
January 11, 2011 21:52
-
-
Save 30equals/775228 to your computer and use it in GitHub Desktop.
install git on redhat/centos
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
#first install the compiler | |
yum install gcc gcc-c++ autoconf automake | |
#install zlib-devel as it's a dependency | |
yum install zlib-devel | |
#then get and build git from source | |
cd /usr/lib | |
wget "http://kernel.org/pub/software/scm/git/git-1.6.1.2.tar.gz" | |
tar xzvf git-1.6.1.2.tar.gz | |
cd git-1.6.1.2 | |
./configure | |
make | |
sudo make install | |
#if you get an error after the 'sudo make install' command, try installing the 'tk' package (sudo yum install tk) and try again |
Anyone not able to wget the version noted in this guide:
- check http://kernel.org/pub/software/scm/git (via browser)
- find your [preferredversion]
- wget http://kernel.org/pub/software/scm/git/[preferredversion]
e.g.,
wget https://www.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
+1