On Mon, 2006-10-23 at 10:43 -0400, Brian Long wrote: > Hello, > > A long time ago, we had a thread about yum groupinstall and comps.xml > "optional" packages. We still use the yum groupinstall (yum-2.4.3) > feature on our internally-built yum repos. We build a repo called > "base" that contains the RHEL distro from RHN. We also build repos of > our internal and third-party software. > > The base repo uses the stock comps.xml from Red Hat to generate the yum > groups. Therefore, there are mandatory, default and optional packages > in certain groups. > > yum groupinstall pulls in all 3 types of packages, instead of taking the > Anaconda approach and only installing mandatory and default packages. > I was wondering how difficult it would be to configure yum (via plugin?) > to disregard the optional packages. > > I remember Seth and Jeremy were involved in this discussion, but I don't > think we came up with a final solution. It'd probably be easier to add in a configuration option that lets you specify the types of pkgs you care about from groups. Then have that modify what comps returns. As a starter take a look at comps.py and see how it is pulling in the pkgs. -sv