Hamurabi Araujo Hamurabi Araujo - 23 days ago 12
Git Question

Install git on Cent OS 5 EC2

I'm trying install git on new EC2 instance with CentOS release 5.11 (Final) using

sudo yum install git
but got this error:

error

I too try do an update with
sudo yum update
and install command but the same error appear.

Answer

On centos you need to download and compile each git package which you will wish o use. (like: git stash, git ...)

Read this post on how to do it. https://www.liquidweb.com/kb/install-git-on-centos-5/

Set the git version to the latest version. If you do manage to install it via yum you will get the latest git version for CENTOS which is git 1.7.9

You can also try this :

sudo yum install epel-release
sudo yum install https://centos6.iuscommunity.org/ius-release.rpm
sudo yum install git2u
Comments