LinuxCommandLibrary

dnf-group

Manage package groups (install, remove, list)

TLDR

List DNF groups, showing installed and uninstalled status in a table

$ dnf group list
copy

Show DNF group info, including repository and optional packages
$ dnf group info [group_name]
copy

Install DNF group
$ dnf group install [group_name]
copy

Remove DNF group
$ dnf group remove [group_name]
copy

Upgrade DNF group
$ dnf group upgrade [group_name]
copy

SYNOPSIS

dnf group [group name]

PARAMETERS

install
    Installs the specified package group.

remove
    Removes the specified package group.

upgrade
    Upgrades the specified package group.

list
    Lists available, installed, or hidden package groups. Use `dnf group list hidden` to show hidden groups.

info
    Displays information about the specified package group.

DESCRIPTION

The `dnf-group` command allows users to manage package groups using the DNF package manager. Package groups are collections of related packages that can be installed, updated, or removed as a single unit. This simplifies the management of software suites and common application stacks.

This command simplifies installation and removal of multiple related packages at once. Common examples are installing groups for software development, office productivity or web servers. It streamlines the process compared to installing each package individually. This can significantly reduce the time and effort required to set up a system with a specific purpose.

The commands that can be used are install, upgrade, remove, list and info, and they offer similar functionality compared to operating on single packages.

USAGE EXAMPLES

List available groups: `dnf group list available`
Install a group: `dnf group install "Development Tools"`
Remove a group: `dnf group remove "Development Tools"`
Note: Group names are case-sensitive and may require quotes if they contain spaces.

HIDDEN GROUPS

Some groups are marked as hidden and aren't shown in a normal listing. To see them you can use the command: dnf group list hidden

HISTORY

The `dnf-group` command is part of the DNF package manager, which is the successor to YUM. Its development was driven by the need for improved performance, dependency resolution, and a more modern architecture compared to YUM. DNF aims to provide a more efficient and reliable package management experience. As such it is included and actively developed in newer Fedora, Red Hat and other Red Hat based distros.

SEE ALSO

dnf(8), yum(8)

Copied to clipboard