Skip to content

Instantly share code, notes, and snippets.

@eyalgo
Created March 26, 2015 00:04
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 eyalgo/8c0935210ff63352e346 to your computer and use it in GitHub Desktop.
Save eyalgo/8c0935210ff63352e346 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment