How does one get a recent version of git installed on an ec2 instance

amazon ec2gitpackage-managementyum

I can't for the life of me figure out how to get yum to install a recent version of git on an ec2 instance. yum install git installs 1.7.4.5, which is not recent enough. Surely there's some 1.8.x package out there someplace so I don't have to attempt to build from source?

Incidentally, following the instructions here `yum upgrade git` centos leads to… 1.7.4.5.

Best Answer

Page about git package:
http://pkgs.org/centos-6/puias-computational-x86_64/git-1.8.3.1-1.sdl6.x86_64.rpm.html

The git rpm installs the core tools with minimal dependencies. To install all git packages, including tools for integrating with other SCMs, install the git-all meta-package.

Download git package itself:
Download git-1.8.3.1-1.sdl6.x86_64.rpm for CentOS 6 from the PUIAS Computational repository.

$> rpm -ihv http://springdale.math.ias.edu/data/puias/computational/6/x86_64/git-1.8.3.1-1.sdl6.x86_64.rpm

or Download PUIAS computational Base:

Download the latest puias-computational rpm from:

$> rpm -ihv http://springdale.math.ias.edu/data/puias/computational/6/x86_64/puias-computational-GPFS-6-1.puias6.8.noarch.rpm

and run:

$> yum install git
Related Topic