DNF5-ENVIRONMENT(8)
β¨ dnf5-environment β the Environment Command, bestie β¨
okay so this is the dnf5-environment page from the dnf5 manual, and it's literally all about environments β like, the big meta-groups that bundle a bunch of groups together. think "KDE Plasma Workspaces" energy. π
πΈ NAME πΈ
dnf5-environment β Environment Command. that's it, that's the name. iconic.
π¦ SYNOPSIS π¦
dnf5 environment {list|info} [options] [<environment-spec>...]
dnf5 environment {install|remove|upgrade} [options]
<group-spec|environment-spec>...
yes there are two forms. one is for looking, one is for doing. we love a duality. π
π DESCRIPTION π
so the environment command in DNF5 does a whole bunch of querying β it gets you info about environments and the groups that belong to them β and it's also the thing you use to actually install an environment. π«Ά
heads up: if you just wanna query groups on their own, that's a different command. use the separate group command for that. not this one. π
you can optionally pass environment-spec arguments to filter down to environments with specific IDs or names. and here's the tea: install, remove and upgrade all accept both environment-spec and group-spec β but if something matches both an environment and a group, only the environments get affected. environments win. main character energy fr. π
π SUBCOMMANDS π
listβ lists all matching environments, whether they're installed or available. if you don't specify anything, it lists all known environments. the--installedand--availableoptions narrow the list down to what you want. π«infoβ prints detailed info about environments. takes the exact same options as thelistsubcommand. twinning. β¨installβ marks the environments or groups you named as installed, and installs the groups and packages they contain.
if an environment or group is already (partially) installed, this command installs the missing groups and packages it contains. no cap.
in case both groups and environments match, only environments are affected.
for environments: all groups from their grouplist and the default groups from their optionlist get installed.
if the --with-optional option is used, optional packages of groups are included too. by default, all Mandatory and Default packages get installed whenever possible. Conditional packages get installed if they meet their requirement. you can configure this via dnf5.conf(5), specifically group_package_types.
if the --no-packages option is used, this command installs no packages at all. only the currently installed group packages count as installed with the groups. π
removeβ marks the environments or groups you named 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. it's giving β¨boundariesβ¨.
in case both groups and environments match, only environments are affected.
if the --no-packages option is used, this command removes no packages at all.
upgradeβ upgrades the definition of the environments and groups you named, plus the groups and packages they contain. if new groups or packages got added to the current definitions since the environments or groups were installed, the new ones get installed. likewise, if some groups or packages got removed from the definition, they get removed too β unless they were installed for a different reason (they 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 environments are affected.
π OPTIONS FOR LIST AND INFO π
--availableβ show only available environments. those are the ones that aren't installed but DNF5 knows about them. π--installedβ show only installed environments.
π₯ 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 installed packages to resolve any potential dependency problems. used with theinstallandupgradecommands.--skip-brokenβ resolve any dependency problems by removing the packages causing problems from the transaction. used with theinstallcommand.--skip-unavailableβ allow skipping packages that can't be installed or upgraded. 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. see theofflinecommand,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 thepersistenceconfiguration 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 thereplaycommand,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). π€ very specific, very important.
π EXAMPLES π
dnf5 environment listβ show list of all environments.dnf5 environment info "KDE Plasma Workspaces"β show detailed info about the KDE environment.
π SEE ALSO π
dnf5-comps(7), Comps groups and environmentsdnf5-specs(7), Patterns specification
π Author π
See AUTHORS.md in dnf5 source distribution.
π Copyright π
Contributors to the dnf5 project.
and that's the whole page bestie π huge thanks to the dnf5 project, this dropped on Sep 24, 2026, and it's from the dnf5 manual, section 8. go forth and install your environments, you absolute icon. π§β¨π«Ά
π¦ 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