LinuxCommandLibrary

dnf5-group

Manage groups of packages in DNF5

TLDR

View documentation for the original command

$ tldr dnf group
copy

SYNOPSIS

dnf5 group [options...] command [group-spec]...

PARAMETERS

-h, --help
    Display help for the command.

--version
    Print DNF5 version information.

--allowerasing
    Permit removal of packages to resolve dependencies.

--assumeyes, -y
    Automatically answer yes to prompts.

--assumeno
    Automatically answer no to prompts.

--best
    Try to install best (newest) versions only.

--with-optional
    Include optional subgroup packages (for install/upgrade).

--with-suggested
    Include suggested subgroup packages (for install/upgrade).

--without-optional
    Exclude optional subgroup packages.

--skip-broken
    Skip packages with broken dependencies.

-v, --verbose
    Increase verbosity level.

--setopt=option=value
    Override DNF configuration options.

DESCRIPTION

The dnf5-group command, part of the DNF5 package manager, handles package groups on RPM-based systems like Fedora. Package groups bundle related software, such as "Development Tools" or "Web Server", enabling bulk operations.

It supports listing available groups, querying details, installing/removing/upgrading entire groups, and switching environments. Users can customize installs to include mandatory, default, optional, or suggested packages via flags. DNF5 improves on DNF4 with faster dependency solving using the libsolv library and modern C++ codebase.

Common workflows: dnf5 group list to browse, dnf5 group install "Development Tools" to deploy toolchains. It integrates with repositories, respects configs in /etc/dnf/dnf.conf, and handles multimedia/multilib groups. Ideal for sysadmins automating software stacks, though groups vary by repo and distro.

CAVEATS

DNF5 is relatively new (Fedora 39+); groups depend on repo data and may not be available in all distros. Use dnf5 group list --available to check. Not backward-compatible with DNF4 configs.

SUBCOMMANDS

info <group>: Show group details.
list [--installed|--available|--upgradable]: List groups.
install <group>: Install group.
remove <group>: Remove group.
upgrade <group>: Upgrade group.

EXAMPLES

dnf5 group list available
dnf5 group install "Server with GUI" --with-optional
dnf5 group info "Development Tools"

HISTORY

Developed by the Fedora Project as part of DNF5 (2023+), a ground-up rewrite using libdnf5 for 10x faster operations. Replaces legacy dnf group with improved group metadata handling from comps.xml.

SEE ALSO

dnf5(8), dnf(8), dnf-automatic(8)

Copied to clipboard