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 the rpm –q command tells the rpm command 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"
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.