[Yum] yum groupinstall: how to install optional packages?

seth vidal skvidal at linux.duke.edu
Wed Feb 14 17:50:47 UTC 2007


On Wed, 2007-02-14 at 11:36 -0500, Michel Salim wrote:
> 2007/2/14, seth vidal <skvidal at linux.duke.edu>:
> > On Wed, 2007-02-14 at 09:12 +0200, Panu Matilainen wrote:
> > > On Tue, 13 Feb 2007, Michel Salim wrote:
> > >
> > > > Is there a way to tell yum to install a group including all optional
> > > > packages? Or is this considered something that a frontend to yum
> > > > should do: grab the group info and then provide the optional package
> > > > list to the user.
> > >
> > > Yum doesn't have a way to specicy group package "policy" but you can
> > > accomplish that by using repoquery as a helper:
> > >
> > > yum install `repoquery -g -l --grouppkgs=all <group1> [<group2>...]`
> > in 3.0.3 you should be able to specify:
> >
> > group_package_types = mandatory default optional
> >
> > in your yum.conf and it will install all of those types.
> >
> Would the first solution involves more overhead (hitting the yum
> repositories twice)? For the second, I guess if I do this often enough
> I could use a custom yum.conf. There's no directive for yum.conf to
> source the content of another file, is there? (So to be safe I'd
> probably use a script to copy the current yum.conf, add the
> group_package_types, use and discard)

yes.

include=/path/to/file
include=http://path/to/url

they work just fine from any yum configuration or .repo file.

-sv





More information about the Yum mailing list