Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the best method for handling yum groups dependencies?

For example, take this comps.xml file

    <description>Packages required to run</description>
      <packagereq type="default">ssh</packagereq>
    <description>Packages required to develop</description>
      <packagereq type="default">gcc</packagereq>

which is packaged with createrepo -g comps.xml x86_64. The ssh and gcc rpms are not installed in the x86_64 directory.

If I run yum groupinstall development, yum is smart enough to pull the gcc package from the RHEL repo even though the groups are defined in my internal repository. However, is this the proper way of doing this, or should I copy the rpms to my local repository and recreate the repo?

share|improve this question

You've got it right.

Yum does cross-repository dependency resolution, so it's actually desirable to have a setup like you describe. Normally you'd have the base os, updates, and a local repo all enabled; you definitely want to be able to, say, add a non-standard package in your local repo and have yum pull dependent packages from the base + updates so your new package's requirements are satisfied.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.