Skip to content

Instantly share code, notes, and snippets.

@roessland
Created March 5, 2019 14:24
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 roessland/e0f5e3f1ac61f4ca38bd1d4aa0675161 to your computer and use it in GitHub Desktop.
Save roessland/e0f5e3f1ac61f4ca38bd1d4aa0675161 to your computer and use it in GitHub Desktop.
Install Git 2 from source on Red Hat 7
# Install git2
sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
sudo yum install gcc perl-ExtUtils-MakeMaker
sudo yum remove git
wget https://www.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz
tar xvf git-2.9.5.tar.gz
cd git-2.9.5
make prefix=/usr/local/git all
sudo make prefix=/usr/local/git install
echo 'pathmunge /usr/local/git/bin/' | sudo tee /etc/profile.d/git.sh
sudo chmod +x /etc/profile.d/git.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment