Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Convert from CentOS 8 to RHEL 8: Error of repomd.xml

    Posted on

    Hi,

    I am converting from CentOS 8 to RHEL 8. I am following this https://access.redhat.com/articles/2360841
    One of the steps requires RHEL packages access through custom repositories configured in the /etc/yum.repos.d/
    So I have downloaded ISO image rhel-8.3-x86_64-dvd.iso and mounted it through the following command:
    mount -o loop rhel-8.3-x86_64-dvd.iso /media/rhel8dvd

    Then create a repo file /etc/yum.repos.d/myredhat.repo with text:
    [repository]
    name=myredhatiso
    baseurl=file:///media/rhel8dvd
    enabled=1

    But on executing yum clean all and then yum update, I am getting the following error:
    myredhatiso 0.0 B/s | 0 B 00:00

    Errors during downloading metadata for repository 'repository':
    - Curl error (37): Couldn't read a file:// file for file:///media/rhel8dvd/repodata/repomd.xml [Couldn't open file /media/rhel8dvd/repodata/repomd.xml]
    Error: Failed to download metadata for repo 'repository': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

    I don't have a repomd.xml file in the mounted ISO.
    How can I resolve this issue.
    Thanks

    by

    points

    Responses

    Red Hat

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat, Inc.