Created
March 5, 2019 14:24
-
-
Save roessland/e0f5e3f1ac61f4ca38bd1d4aa0675161 to your computer and use it in GitHub Desktop.
Install Git 2 from source on Red Hat 7
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
# 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