install git from source
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
su - | |
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel | |
yum install gcc perl-ExtUtils-MakeMaker | |
yum remove git | |
# Download source | |
# check latest version in http://git-scm.com/downloads | |
cd /usr/src | |
wget https://www.kernel.org/pub/software/scm/git/git-<latest-version>.tar.gz | |
tar xzf git-<latest-version>.tar.gz | |
# create git from source code | |
cd git-<latest-version> | |
make prefix=/opt/git all | |
make prefix=/opt/git install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment