DNF5-GROUP(8)
π dnf5-group β Group Command π
okay bestie, so this is the page for dnf5-group from the dnf5 manual, and it's literally all about the group command. groups are the vibe. let's get into it π«Ά
β¨ NAME β¨
dnf5-group β the Group Command, aka your main character for everything group-related π
π SYNOPSIS π
dnf5 group {list|info} [options] [<group-spec>...]
dnf5 group {install|remove|upgrade} [options]
<group-spec|environment-spec>...
πΈ DESCRIPTION πΈ
so the group command in DNF5 is giving several queries β you can use it to get info about groups, the packages related to them, and also to actually install groups. slay.
heads up though: if you wanna query environments, use the separateenvironmentcommand. not me being messy about it β it's just how it is now. dnf-4 used to list both environments and groups together with thegroupcommand. that's the tea. β
you can optionally pass group-spec arguments to filter groups by their given IDs or names. and for install, remove and upgrade: those take both group-spec and environment-spec, but if both groups and environments match, only groups are affected. no cap. π
π¦ SUBCOMMANDS π¦
listβ lists all matching groups, either among installed ones or available ones. if you don't specify anything, it lists all known groups.--installedand--availablenarrow down the list you're asking for. and if you use--hidden, the hidden groups get included too. sneaky πinfoβ prints detailed info about groups. it accepts the exact same options as thelistsubcommand. twinning πinstallβ marks the specified environments or groups as installed, and installs the groups and packages they contain.
if an environment or group is already (partially) installed, the command installs the missing groups and packages it contains.
in case both groups and environments match, only groups are affected.
for environments: all groups from their grouplist and default groups from their optionlist get installed.
if --with-optional is used, the Optional packages of groups get included too. by default, all Mandatory and Default packages will be installed whenever possible. Conditional packages are installed if they meet their requirement. and you can configure all of this via dnf5.conf(5), group_package_types <#group-package-types-options-label>.
if --no-packages is used, no packages will be installed by this command. only currently installed group packages are considered to be installed with the groups.
removeβ marks the specified environments or groups as removed, and removes the groups and packages they contain β unless they belong to another installed environment or group, were installed explicitly by the user, or (in the case of packages) were installed as a dependency. π«£
in case both groups and environments match, only groups are affected.
if --no-packages is used, no packages will be removed by this command.
upgradeβ upgrades the definition of the specified environments and groups, plus the groups and packages they contain. if new groups or packages have been added to the current definitions since the environments or groups were installed, those new groups and packages get installed. likewise, if some groups or packages have been removed from the definition, they get removed β unless they were installed for a different reason (belong to another installed environment or group, were installed explicitly by the user, or were installed as a dependency).
in case both groups and environments match, only groups are affected.
β OPTIONS FOR LIST AND INFO β
--availableβ show only available groups. those are the ones which are not installed, but known to DNF5.--installedβ show only installed groups.--hiddenβ show also hidden groups.--contains-pkgs=PACKAGE_NAME,...β show only groups containing packages with the specified names. it's a list option, and it supports globs. β¨
π₯ OPTIONS FOR INSTALL, REMOVE AND UPGRADE π₯
--with-optionalβ include optional packages from the groups. used with theinstallcommand.--no-packagesβ operate exclusively on the environments and groups without manipulating any packages. used with theinstallandremovecommands.--allowerasingβ allow removing of installed packages to resolve any potential dependency problems. used with theinstallandupgradecommands.--skip-brokenβ resolve any dependency problems by removing packages that are causing problems from the transaction. used with theinstallcommand.--skip-unavailableβ allow skipping packages that are not possible to install or upgrade. used with theinstallandupgradecommands.--allow-downgradeβ enable downgrade of dependencies when resolving the requested operation. used with theinstallandupgradecommands.--no-allow-downgradeβ disable downgrade of dependencies when resolving the requested operation. used with theinstallandupgradecommands.--downloadonlyβ download the resolved package set without executing an RPM transaction. used with theinstallandupgradecommands.--offlineβ store the transaction to be performed offline. seeoffline command <#offline-command-ref-label>,dnf5-offline(8).--transientβ applicable only on bootc (bootable containers) systems. perform transactions using a transient overlay which will be lost on the next reboot. see also thepersistence <#persistence-options-label>configuration option. β¨--store=PATHβ store the current transaction in a directory at the specified PATH instead of running it. the stored transaction can be performed by thereplay command <#replay-command-ref-label>,dnf5-replay(8).
note that repository ids in the stored transaction are mangled to@stored_transaction(repo_id)β this is required because during replaying the stored repositories are recreated and they might collide with already present repositories (this doesn't apply to the special@Systemrepository). π important, bestie!
π EXAMPLES π
dnf5 group list --hiddenβ show list of all groups, including hidden ones.dnf5 group info *xfce*β show detailed info about all groups related to Xfce.dnf5 group install mysql --with-optionalβ install the mysql group including optional packages.dnf5 group upgrade mysqlβ bring packages of the mysql group to compliance with a current definition of the group.
π SEE ALSO π
dnf5-comps(7), Comps groups and environments<#comps-misc-ref-label>dnf5-specs(7), Patterns specification<#specs-misc-ref-label>
π Author
See AUTHORS.md in dnf5 source distribution.
π Copyright
Contributors to the dnf5 project.
okay and that's the whole page, bestie β no crumbs left. this was the dnf5 manual's dnf5-group(8) page, dated Sep 24, 2026. go forth and group responsibly π¦β¨π
π¦ where this page comes from
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- fedora 44: dnf5 5.4.6.0-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms