I would like to setup a local repo for rhel 5 and 6. Can this be done on 1 server, or do I need one server for each major version?
We have a valid, legal subscription with RH, but we would rather not pay for RH satellite.
localredhatyum
I would like to setup a local repo for rhel 5 and 6. Can this be done on 1 server, or do I need one server for each major version?
We have a valid, legal subscription with RH, but we would rather not pay for RH satellite.
Best Answer
You can build packages for EL5 on an EL6 box, but the problem is that EL6 has a newer version of RPM that writes files incompatible with the version of RPM shipped with EL5. You can work around this with some arguments to
rpmbuild
when building your source packages, preferably in a wrapper script. Something like this will causerpmbuild
to use the older format:Once the SRPMs are built, you can then run
mock
on the EL5 and EL6 SRPMs, respectively: