Mailinglist Archive: opensuse-factory (599 mails)

< Previous Next >
Re: [opensuse-factory] How to list packages belonging to a given group?
  • From: Émeric Maschino <emeric.maschino@xxxxxxxxxxxx>
  • Date: Wed, 23 Aug 2006 14:48:00 +0200
  • Message-id: <1156337280.25747.26.camel@xxxxxxxxxxxxxxxxxxxxxx>
Hi,

> > Is there a way to list all the packages belonging to a given group
> > (e.g. System/Base) in CLI?
>
> Package name only:
> rpm -qa --qf "%{name}\t%{group}\n" | grep "<given group>"
>
> With package version and release number:
> rpm -qa --qf "%{name}-%{version}-%{release}\t%{group}\n" | grep ...

Thank you very much. However, I was thinking of a more "high-level"
list. Let me explain. When you choose e.g. the GNOME environment, some
packages in this group are mandatory, other are optional or
architecture-dependant. Furthermore, choosing the GNOME environment
group automatically select e.g. the base and X11 groups and all the
related dependent packages. This is this kind of package list I would
like to obtain. BTW, how did you find the names of the %{name},
%{version}, %{release} and %{group} keys in your query? Are there
documented somewhere? Additionally, is there a way to recover the names
of all the groups? yum list groupinstall did the trick before.

Émeric

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >