Linux – Repairing yum’s repositories on a RHEL5

linuxrhel5rpmyum

I am using RHEL5 and yum is missing many packages, such as apache, php, and all php libraries . I have added the rpmforge repository, but i am still missing these packages. This is an i686 machine and there might not be many i686 packages available, I think that if i force an i386 i'll have serious problems.

How do I make sure I have a large number of compatible packages on a RHEL5 system? I didn't install this system, is it normal for RHEL5 to have virtually no useful packages in yum? How do RHEL5 administrators use yum without introducing conflicts with currently installed packages? Should I ditch yum and use apt?

Thanks!

Best Answer

It sounds like you have one or more of the main Red Hat repositories disabled. Have a look at the files in /etc/yum.repos.d and make sure that:

  1. The Red Hat .repo files are there
  2. The repository definitions inside the .repo files are not set to "enabled=0"

Also, check any errors that you get when you try to run yum - it's possible that you can;t get to the repository URL defined in the .repo file from your machine.