Skip to content

Instantly share code, notes, and snippets.

@krabello
Created May 7, 2014 13:34
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 krabello/91e795fb0ea7d0d5e83e to your computer and use it in GitHub Desktop.
Save krabello/91e795fb0ea7d0d5e83e to your computer and use it in GitHub Desktop.
RHEL 6 git install
#!/bin/bash
# Download git RHEL 6/CentOS 6
wget http://git-core.googlecode.com/files/git-1.8.3.4.tar.gz
# Install Manual
wget -O git-manpages-1.8.3.4.tar.gz http://code.google.com/p/git-core/downloads/detail?name=git-manpages-1.8.3.4.tar.gz&can=2&q=
# Install all required libraries before building GIT:
sudo yum install zlib-devel perl-CPAN gettext
# Untar and build and install GIT in the /usr directory:
tar xvfz git-1.8.3.4.tar.gz
cd git-1.8.3.4
./configure
make
sudo make prefix=/usr install
git --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment