9.3. Working with Package Groups
yum groups command is a top-level command that covers all the operations that act on package groups in yum.
9.3.1. Listing Package Groups
summary option is used to view the number of installed groups, available groups, available environment groups, and both installed and available language groups:
yum groupssummary
Example 9.14. Example output of yum groups summary
~]$yumgroupssummaryLoaded plugins: langpacks, product-id, subscription-manager Available Environment Groups: 12 Installed Groups: 10 Available Groups: 12
list option. You can filter the command output by group names.
yumgrouplistglob_expression…
hidden to list also groups not marked as user visible, and ids to list group IDs. You can add language, environment, installed, or available options to reduce the command output to a specific group type.
yumgroupinfoglob_expression…
Example 9.15. Viewing information on the LibreOffice package group
~]$yumgroupinfoLibreOfficeLoaded plugins: langpacks, product-id, subscription-manager Group: LibreOffice Group-Id: libreoffice Description: LibreOffice Productivity Suite Mandatory Packages: =libreoffice-calc libreoffice-draw -libreoffice-emailmerge libreoffice-graphicfilter =libreoffice-impress =libreoffice-math =libreoffice-writer +libreoffice-xsltfilter Optional Packages: libreoffice-base libreoffice-pyuno
- "
-" — Package is not installed and it will not be installed as a part of the package group. - "
+" — Package is not installed but it will be installed on the nextyum upgradeoryum group upgrade. - "
=" — Package is installed and it was installed as a part of the package group. - no symbol — Package is installed but it was installed outside of the package group. This means that the
yum group removewill not remove these packages.
group_command configuration parameter is set to objects, which is the default setting. Set this parameter to a different value if you do not want yum to track if a package was installed as a part of the group or separately, which will make "no symbol" packages equivalent to "=" packages.
yum group mark command. For example, yum group mark packages marks any given installed packages as members of a specified group. To avoid installation of new packages on group update, use yum group mark blacklist. See the yum(8) man page for more information on capabilities of yum group mark.
Note
yum group list, info, install, or remove, pass @group_name to specify a package group, @^group_name to specify an environmental group, or group_name to include both.
9.3.2. Installing a Package Group
yum group list ids Example 9.16. Finding name and groupid of a package group
~]$ yum group list ids kde\*
Available environment groups:
KDE Plasma Workspaces (kde-desktop-environment)
Donehidden command option to list hidden groups too:
~]$ yum group list hidden ids kde\*
Loaded plugins: product-id, subscription-manager
Available Groups:
KDE (kde-desktop)
Donegroup install command. As root, type:
yumgroup install"group name"
root, execute the following command:
yumgroup installgroupid
install command if you prepend it with an @ symbol, which tells yum that you want to perform group install. As root, type:
yuminstall@group
yuminstall@^group
Example 9.17. Four equivalent ways of installing the KDE Desktop group
~]#yum group install "KDE Desktop"~]#yum group install kde-desktop~]#yum install @"KDE Desktop"~]#yum install @kde-desktop
9.3.3. Removing a Package Group
install syntax, with use of either name of the package group or its id. As root, type:
yumgroup removegroup_name
yumgroup removegroupid
remove command if you prepend it with an @-symbol, which tells yum that you want to perform group remove. As root, type:
yumremove@group
yumremove@^group
Example 9.18. Four equivalent ways of removing the KDE Desktop group
~]#yum group remove "KDE Desktop"~]#yum group remove kde-desktop~]#yum remove @"KDE Desktop"~]#yum remove @kde-desktop

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.