How To Install Package Groups using Yum on Linux
We explain how to see group availability and how to install, delete and mark a group of packages with Linux Yum.
The updates of the operating systems are always necessary, you all know them first-hand, and they are required to be 100% sure and not lose improvements, new options, etc.
The programmers of the apps, programs, and distributions are publishing them to be always up to date.
This tutorial on the updates in CentOS 7 and RedHat is focused on getting install packages in all possible ways as they are individually and multiply.
Keep in mind that package groups have functions that apply tasks that they have implemented.
Today I will teach in a practical way how to install a group of packages in Linux environments, in this case, CentOS 7.
See Available Groups For Installation
To list all available groups of all current yum repositories, we can use the list subcommand using one of the following options:
yum groups listyum grouplist
There we can see the various categories of two options that are:
- Available: Refers to groups that are ready to be installed in the operating system
- Installed: Refers to groups that are already installed in the operating system.
The groupinstall option is used to install a defined group of packages, however, the yum grouplist command can not always show all the groups that are provided when installing the Linux operating system from the installation CDs.
In this case, to see all the groups, including the hidden ones, we will execute the following command:
yum grouplist hidden
See Number of Groups Available
It is possible to see the total number of groups available in a category using the summary summary subcommand:
yum groups summary
There we have the number of groups installed and available both at the environment level and at a general level.
How to Install Groups
Before proceeding with the process of installing a group of packages, it is possible to see the group ID, a brief description of the group and the various packages it contains under different categories (mandatory, predetermined and optional packages) using the information subcommand called info :
yum groups info "Development Tools"
There we can see that we have each category within said group, additional we will see a summary of said group:
yum groups info "Desktop"
To install a group of packages, for example, we can install a KDE graphical environment, for this we must use the installation subcommand with the following syntax:
yum groups install "KDE"
Delete & Mark a Group
To delete a group (this process deletes all the packages from the system group), we will simply use the
remove:yum groups remove "Group"
It is also possible to mark a group as installed with the following command:
yum groups mark install "Grupo"
So we can use Yum for the installation and management of package groups in Linux environments.