Product SiteDocumentation Site

4.2.2. Package groups

RPM packages can be placed into groups, merely arbitrary names for a set of packages. The rpm –qi command, shown previously, lists the group for a package, if there is one. For the tcsh package shown in the previous example, the package is System Environment/Shells.
The –g option to rpm –q tells rpm to list all the packages in a given group. You can also use the longer option, --group, in place of –g. The basic syntax follows:
rpm –qg group_name
For example:
rpm -qg "System Environment/Shells"
dash-0.5.5.1-3.x86_64
bash-4.1.7-1.x86_64
tcsh-6.17-6.x86_64

Spaces in group names

This group has a space in its name, so you need quotation marks to pass the group name as one parameter to the rpm command.