eyalgo
3/26/2015 - 12:04 AM

install git from source

install git from source

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