How do I install the main repositories for RHEL6

Posted by eisaacson on Server Fault See other posts from Server Fault or by eisaacson
Published on 2013-11-08T17:55:23Z Indexed on 2013/11/09 4:00 UTC
Read the original article Hit count: 507

Filed under:
|
|

We've setup RHEL6 on a new server. As far as we can tell, our subscription is all setup properly. However, when I run yum repolist, it doesn't show any repositories. /etc/yum.repos.d/redhat.repo is empty. I tried pasting in the content from another RHEL6 server's redhat.repo but as soon as I run yum, it wipes it out again.

I just need to get the basic RedHat repositories setup so I can install packages.

EDIT:

Using the GUI, I went to System > Administration > Red Hat Subscription Manager. Under the 'Products' tab, it did not show any products.

EDIT:

When I run yum update, here's what I get:

# yum update
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
Setting up Update Process
No Packages marked for Update

When I log in to RedHat customer portal, it shows that subscription as active.

EDIT:

To make sure I wasn't having a subscription issue. I re-registered and re-subscribed. I get all the same results.

# subscription-manager register --force
# subscription-manager subscribe --pool=*redacted*

EDIT:

contents of /etc/yum.conf

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

contents of /etc/yum/pluginconf.d/rhnplugin.conf:

[main]
enabled = 0
gpgcheck = 1

© Server Fault or respective owner

Related posts about yum

Related posts about rhel6