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

Michel Salim michel.salim at gmail.com
Wed Feb 14 16:36:51 UTC 2007


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)

-- 
Michel Salim
http://hircus.wordpress.com/

My theology, briefly, is that the universe was dictated but not signed.
                -- Christopher Morley



More information about the Yum mailing list