Can I use a Red Hat Enterprise Linux 5 system as a yum repo for Red Hat Enterprise Linux 6?
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Issue
- I've copied the contents of the Red Hat Enterprise Linux 6 DVD to a Red Hat Enterprise Linux 5 system and run
createrepothen shared that directory, but kickstarts off this repo fail withyum.YumBaseerrors. - How can I use my Red Hat Enterprise Linux 5 system as a yum repository for Red Hat Enterprise Linux 6 installations?
Resolution
It is not possible to run createrepo on Red Hat Enterprise Linux 5 and create a valid Red Hat Enterprise Linux 6 repository.
Workaround
Copy the contents of the DVD and do not run createrepo.
The contents of the DVD already include a repodata.xml file, so this does not need to be regenerated.
Root Cause
- The Red Hat Enterprise Linux 6 repository format includes architectural changes which have not been backported to Red Hat Enterprise Linux 5's
createrepocommand. The only products which can actually create a valid repository for Red Hat Enterprise Linux 6 are RHN Satellite 5.4.1 or newer and Red Hat Enterprise Linux 6 itself.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
