I'm trying to install a LAMP stack in a fresh red hat server but yum is misbehaving. Being linux illiterate I'm at a loss.
$yum install httpd
Loaded plugins: security
Setting up Install Process
No package httpd available.
Nothing to do
My yum config
$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h
# Default.
# installonly_limit = 3
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
Other stuff in the yum.repos.d dir
$ ls -lah /etc/yum.repos.d/
total 12K
drwxr-xr-x 2 root root 4.0K Feb 4 01:15 .
drwxr-xr-x 59 root root 4.0K Feb 4 01:28 ..
-rw-r--r-- 1 root root 561 Mar 10 2010 rhel-debuginfo.repo
What could be going on? I thought "out of the box" RHEL5.5 would be friendlier 🙂
Best Answer
I figured it out. Since this server was automatically created using an image from the cloud it never got registered with the red hat network. After doing that, yum started behaving again.