9.3. Working with Package Groups
yum groupscommand is a top-level command that covers all the operations that act on package groups in yum.
9.3.1. Listing Package Groups
summaryoption is used to view the number of installed groups, available groups, available environment groups, and both installed and available language groups:
Example 9.14. Example output of yum groups summary
summaryLoaded plugins: langpacks, product-id, subscription-manager Available Environment Groups: 12 Installed Groups: 10 Available Groups: 12
listoption. You can filter the command output by group names.
hiddento list also groups not marked as user visible, and
idsto list group IDs. You can add
availableoptions to reduce the command output to a specific group type.
Example 9.15. Viewing information on the LibreOffice package group
LibreOfficeLoaded 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 next
yum 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_commandconfiguration 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 markcommand. For example,
yum group mark packagesmarks 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.
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) Done
hiddencommand option to list hidden groups too:
yum group list hidden ids kde\*Loaded plugins: product-id, subscription-manager Available Groups: KDE (kde-desktop) Done
group installcommand. As
group install"group name"
root, execute the following command:
installcommand if you prepend it with an @ symbol, which tells
yumthat you want to perform
group install. As
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
installsyntax, with use of either name of the package group or its id. As
removecommand if you prepend it with an @-symbol, which tells yum that you want to perform
group remove. As
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