How can I install git on RHEL 6?

Posted by JR.Xyza on Server Fault See other posts from Server Fault or by JR.Xyza
Published on 2012-10-01T20:38:29Z Indexed on 2012/10/01 21:40 UTC
Read the original article Hit count: 227

Filed under:
|
|

I'm trying to install Git on a RHEL6 development server, I have experience with Ubuntu but this is my first time working with RHEL (I'm a developer trying to fill in for a recently departed Linux Sysadmin).

I've set up two additional repos (EPEL and IUS) for other packages needed for a Magento install. Output of yum repolist:

[root@box]# yum repolist
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
repo id              repo name                                        status
epel                 Extra Packages for Enterprise Linux 6 - x86_64   7,841
ius                  IUS for RHEL 6Server - x86_64                    135

Most of what I've read indicates a simple 'yum install git' should work with EPEL enabled, but I get the dreaded

[root@box]# yum install git
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package git available.
Error: Nothing to do

Same goes for git-daemon, etc.

I've tracked down a number of git RPMs such as this one at repoforge but they require a train of dependencies that seems to never end.

I've also toyed with compiling it manually but the rabbit hole to get make working seems to go even deeper.

I'm convinced there's a simple oversight somewhere keeping me from being able to install from the EPEL repo, but I'm a rookie at all this. Thanks in advance for help/pointers/additional resources.

© Server Fault or respective owner

Related posts about git

Related posts about rhel6