Unable to yum install anything on RHEL

Prakash Raman picture Prakash Raman · Sep 13, 2012 · Viewed 48.4k times · Source

I am on a new RHEL system.

I seem to be unable to be able to install anything package via yum install.

yum install nmap

The current repos in

ls /etc/yum.repos.d/
google-chrome.repo  redhat.repo         rhel-source.repo

What could be going wrong ?

OUTPUT OF YUM INSTALL:

$ sudo yum install nmap
[sudo] password for user: 
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package nmap available.
Error: Nothing to do

Answer

PentheusLennuye picture PentheusLennuye · Oct 19, 2012

Red Hat doesn't use the /etc/yum.repos.d directory for official packages so the answer won't be in there. It will use the subscription plugin placed in /etc/yum/pluginconf.d.

You mentioned that the RHEL host is new. You will need to make sure your subscription is valid or yum will fail silently.

You can use the subscription-manager list command to gain info regarding subscriptions.