Yum fails against Red Hat Network (RHN) Hosted with 'Cannot retrieve repository metadata (repomd.xml) for repository' error

Solution Verified - Updated -

Issue

  • Getting following error while running "yum list "
# yum list
Loaded plugins: downloadonly, rhnplugin, security
 Error:
 Cannot retrieve repository metadata (repomd.xml) for repository:
 rhel-x86_64-server-5. Please verify its path and try again

Environment

  • Red Hat Enterprise Linux Server 5
  • Red Hat Enterprise Linux Server 6
  • Red Hat Network (RHN)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.