Skip to content

Instantly share code, notes, and snippets.

@30equals
Created January 11, 2011 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 30equals/775228 to your computer and use it in GitHub Desktop.
Save 30equals/775228 to your computer and use it in GitHub Desktop.
install git on redhat/centos
#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
@indecipherable
Copy link

+1

@indecipherable
Copy link

indecipherable commented Aug 20, 2017

Anyone not able to wget the version noted in this guide:

  1. check http://kernel.org/pub/software/scm/git (via browser)
  2. find your [preferredversion]
  3. 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

@ChenGavi
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment