Is it possible to create a local repo with more than one distro?

Latest response

My scenario is I have a mix of Red hat 5.6 and 6.1 in the enviornment right now. I would like to avoid having to setup 2 seperate yum repo servers for each distro if possible. If it is not possible that is fine I will just spin up another vm and go about my day but wanted to ask first.


That should work out of the box if you put the repos next to each other





Alternatively you can have a look at:

  • Satellite
  • Spacewalk
  • Pulp
  • Cobbler

Please do not do this. yum is not that smart, and may trash the system.



Use two different repo, but with a single url such as seen on fedora





To make your life easier, use createrepo from EL5 for EL5, createrepo from EL6 for EL6.  EL5 uses MD5, EL6 uses SHA1 and a newer RPM release format.


HINT:  You an always NFS share the EL5 repo from the EL6 system to an EL5 running as a KVM guest.  ;)


And just to mirror Ritesh's comments, use the keywords as appropriate.  ;)