0

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.

8
  • Your uch more likely to get an answer to this on Stack Overflow. Commented Jun 1, 2014 at 21:12
  • I can never tell what's topical where these days. Apologies. Commented Jun 1, 2014 at 21:14
  • This isn't really a StackOverflow question, either. Commented Jun 1, 2014 at 21:28
  • 1
    Are you absolutely certain you need a newer version of git? Or do you just think you want it because it has a bigger number? Commented Jun 1, 2014 at 23:09
  • 1
    Yes, I'm certain, because the authors of the Jenkins git plugin said so. I'm obviously not thrilled about the situation. Commented Jun 2, 2014 at 0:41

1 Answer 1

1

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 
6
  • Thanks, not sure why 20 minute of Googling couldn't have turned that up. Commented Jun 2, 2014 at 3:11
  • Although the installation instructions seem to be incomplete, so guess I'm installing from source anyway. Commented Jun 2, 2014 at 5:21
  • i gave you direct link to "how to". Commented Jun 2, 2014 at 10:37
  • Yep, I followed those instructions. There are four dependencies required to install that computational rpm that aren't in the package list. Commented Jun 2, 2014 at 15:35
  • please name these dependencies, probably you need to enable default repository like EPEL: rpm -Uvh dl.fedoraproject.org/pub/epel/6/x86_64/… Commented Jun 2, 2014 at 16:27

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.