dnf5-group
Manage groups of packages in DNF5
TLDR
View documentation for the original command
SYNOPSIS
dnf5-group <command> [<options>] [<arguments>...]
Examples:
dnf5-group list --available
dnf5-group info "Development Tools"
dnf5-group install "KDE Plasma Workspaces"
PARAMETERS
list [
Lists available or installed package groups. Can be combined with specific options like --available (to show only groups available for installation), --installed (to show only currently installed groups), --hidden (to include hidden groups), or --id (to display group IDs). Accepts group specifications as arguments to filter specific groups.
info
Displays comprehensive information about one or more specified package groups, including a list of their mandatory, default, and optional packages.
install
Installs all mandatory and default packages belonging to the specified group(s). This command ensures all necessary dependencies for the group are met.
remove
Removes all mandatory and default packages that were originally installed as part of the specified group(s). It carefully handles dependencies to avoid breaking other installed software.
summary
Provides a statistical overview and count of available and installed package groups on the system.
mark
Modifies the state of a group, marking it as user-installed or user-removed. This influences how dnf5 handles packages within that group during subsequent operations (e.g., updates or autoremove).
--assumeyes, -y
A common global dnf5 option that automatically answers yes to all questions asked during the command execution, useful for scripting.
--refresh
A common global dnf5 option that forces a refresh of the repository metadata before executing the command.
DESCRIPTION
dnf5-group is a command-line utility used for managing software package groups within the DNF5 package management system. It provides functionalities to list available groups, view detailed information about specific groups, install entire groups of related packages, and remove them. This tool simplifies the installation and uninstallation of complex software environments, ensuring that all necessary dependencies for a particular set of functionalities (e.g., a desktop environment, development tools) are handled cohesively.
It is the successor to dnf group and yum group, offering similar capabilities with the performance and feature enhancements of DNF5. Group management helps users install a complete functional set of software, avoiding the need to individually select numerous interdependent packages. It streamlines provisioning and maintenance of systems by providing predefined, curated collections of software, which are particularly useful for setting up development workstations, server roles, or specific desktop environments. The command offers flexibility in managing installed components and ensures consistency across installations.
CAVEATS
As dnf5 is still under active development, its commands and options might evolve. While dnf5-group strives for robust dependency resolution, removing a group might not uninstall all its packages if they are also dependencies of other installed software. The group definitions are provided by repository metadata and can vary between different Linux distributions or even different repositories.
GROUP SPECIFICATION
Groups can be specified by their full name (e.g., "KDE Plasma Workspaces") or by their unique ID (e.g., "kde-desktop"). Group IDs are often lowercase and hyphenated versions of the group name and are generally more stable across language settings.
PACKAGE TYPES IN GROUPS
DNF groups can categorize their constituent packages as mandatory, default, or optional. The dnf5-group install command typically installs only mandatory and default packages. Optional packages within a group must be installed explicitly as individual packages.
HISTORY
dnf5-group is an integral part of the DNF5 project, the next generation of the DNF package manager. DNF itself succeeded YUM (Yellowdog Updater, Modified) as the default package manager for RPM-based Linux distributions like Fedora, CentOS, and Red Hat Enterprise Linux. The concept of package groups has been a fundamental feature since the YUM era, enabling users to install predefined collections of software (e.g., a specific desktop environment or development tools) efficiently. dnf5-group continues this tradition, leveraging the performance enhancements and modular architecture of DNF5 to offer a more efficient and user-friendly experience for managing these software bundles. Its development focuses on modernization, improved reliability, and alignment with contemporary Linux ecosystem standards.