How can I get the "base" repository for yum in RHEL 6?

User7391 asked:

My goal is to try and install git on a RHEL 6 machine.

I’ve seen the post here: How can I install git on RHEL 6?

And the answer refers to a download link that appears part of centOS: http://mirror.anl.gov/pub/centos/6.3/os/x86_64/Packages/git-1.7.1-2.el6_0.1.x86_64.rpm

I am hesitant to use such a link as it is an outdated version of Git, and more importantly, I was under the impression that I might clobber one package from the wrong repository with what I have on my machine if I use something from Fedora or CentOS.

Indeed, I got this impression from the information describing the EPEL software repository.

From http://fedoraproject.org/wiki/EPEL

EPEL packages are usually based on their Fedora counterparts and will
never conflict with or replace packages in the base Enterprise Linux
distributions.

However, following the overall advice from that linked serverfault post, I need to install the “base” repository for RHEL.

How can I do this?

For what it’s worth, here is my “repolist”:

$ yum repolist
Plugin "product-id" can't be imported
Plugin "subscription-manager" can't be imported
Loaded plugins: refresh-packagekit, security
repo id                                                   repo name                                                                                        status
epel                                                      Extra Packages for Enterprise Linux 6 - x86_64                                                   8,220
repolist: 8,220

My answer:


Your system is having some sort of problem with your Red Hat subscription. Make sure you have an active entitlement assigned to the machine, and if you do, contact Red Hat to resolve the problem.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.