Created
May 7, 2014 13:34
-
-
Save krabello/91e795fb0ea7d0d5e83e to your computer and use it in GitHub Desktop.
RHEL 6 git install
This file contains 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
#!/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