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 separate environment command. not me being messy about it β€” it's just how it is now. dnf-4 used to list both environments and groups together with the group command. 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. --installed and --available narrow 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 the list subcommand. 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 the install command.
  • --no-packages β€” operate exclusively on the environments and groups without manipulating any packages. used with the install and remove commands.
  • --allowerasing β€” allow removing of installed packages to resolve any potential dependency problems. used with the install and upgrade commands.
  • --skip-broken β€” resolve any dependency problems by removing packages that are causing problems from the transaction. used with the install command.
  • --skip-unavailable β€” allow skipping packages that are not possible to install or upgrade. used with the install and upgrade commands.
  • --allow-downgrade β€” enable downgrade of dependencies when resolving the requested operation. used with the install and upgrade commands.
  • --no-allow-downgrade β€” disable downgrade of dependencies when resolving the requested operation. used with the install and upgrade commands.
  • --downloadonly β€” download the resolved package set without executing an RPM transaction. used with the install and upgrade commands.
  • --offline β€” store the transaction to be performed offline. see offline 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 the persistence <#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 the replay 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 @System repository). πŸ’€ 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.

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