.\" Man page generated from reStructuredText .\" by the Docutils 0.22.4 manpage writer. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "DNF5-ENVIRONMENT" "8" "May 09, 2026" "" "dnf5" .SH NAME dnf5-environment \- Environment Command .SH SYNOPSIS .sp \fBdnf5 environment {list|info} [options] [...]\fP .sp \fBdnf5 environment {install|remove|upgrade} [options] ...\fP .SH DESCRIPTION .sp The \fBenvironment\fP command in \fBDNF5\fP offers several queries for getting information about environments and groups related to them and it is also used for environment installation. To query groups, use separate \fBgroup\fP command. .sp Optional \fBenvironment\-spec\fP arguments can be passed to filter environments with given IDs or names. The install, remove and upgrade commands take both \fBenvironment\-spec\fP and \fBgroup\-spec\fP, but in case both environments and groups match, only environments are affected. .SH SUBCOMMANDS .INDENT 0.0 .TP .B \fBlist\fP List all matching environments, either among installed or available environments. If nothing is specified, list all known environments. \fB\-\-installed\fP and \fB\-\-available\fP options narrow down the requested list. .TP .B \fBinfo\fP Print detailed information about environments. The command accepts the same options as the \fBlist\fP subcommand. .TP .B \fBinstall\fP Mark the specified environments or groups installed and install groups and packages they contain. .sp If an environments or group is already (partially) installed, the command installs the missing groups and packages it contains. .sp In case both groups and environments match, only environments are affected. .sp For environments, all groups from their grouplist and default groups from their optionlist are installed. .sp If the \fB\-\-with\-optional\fP option is used, also include \fBOptional\fP packages of groups. By default, all \fBMandatory\fP and \fBDefault\fP packages will be installed whenever possible. \fBConditional\fP packages are installed if they meet their requirement. This can be configured by \fBdnf5.conf(5)\fP, group_package_types \%<#\:group-package-types-options-label>\&. .sp If the \fB\-\-no\-packages\fP option is used, no packages will be installed by this command. Only currently installed group packages are considered to be installed with the groups. .TP .B \fBremove\fP Mark the specified environments or groups removed and remove groups and packages they contain unless they belong to another installed environment or group, were installed explicitly by the user or (in case of packages) were installed as a dependency. .sp In case both groups and environments match, only environments are affected. .sp If the \fB\-\-no\-packages\fP option is used, no packages will be removed by this command. .TP .B \fBupgrade\fP Upgrade a definition of the specified environments and groups and 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, the new groups and packages will be installed. Likewise, if some groups or packages have been removed from the definition, they will be 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). .sp In case both groups and environments match, only environments are affected. .UNINDENT .SH OPTIONS FOR LIST AND INFO .INDENT 0.0 .TP .B \fB\-\-available\fP .nf Show only available environments. Those which are not installed, but known to \fBDNF5\fP\&. .fi .sp .TP .B \fB\-\-installed\fP .nf Show only installed environments. .fi .sp .UNINDENT .SH OPTIONS FOR INSTALL, REMOVE AND UPGRADE .INDENT 0.0 .TP .B \fB\-\-with\-optional\fP .nf Include optional packages from the groups. Used with \fBinstall\fP command. .fi .sp .TP .B \fB\-\-no\-packages\fP .nf Operate exclusively on the environments and groups without manipulating any packages. Used with \fBinstall\fP and \fBremove\fP commands. .fi .sp .TP .B \fB\-\-allowerasing\fP .nf Allow removing of installed packages to resolve any potential dependency problems. Used with \fBinstall\fP and \fBupgrade\fP commands. .fi .sp .TP .B \fB\-\-skip\-broken\fP .nf Resolve any dependency problems by removing packages that are causing problems from the transaction. Used with \fBinstall\fP command. .fi .sp .TP .B \fB\-\-skip\-unavailable\fP .nf Allow skipping packages that are not possible to install or upgrade. Used with \fBinstall\fP and \fBupgrade\fP commands. .fi .sp .TP .B \fB\-\-allow\-downgrade\fP .nf Enable downgrade of dependencies when resolving the requested operation. Used with \fBinstall\fP and \fBupgrade\fP commands. .fi .sp .TP .B \fB\-\-no\-allow\-downgrade\fP .nf Disable downgrade of dependencies when resolving the requested operation. Used with \fBinstall\fP and \fBupgrade\fP commands. .fi .sp .TP .B \fB\-\-downloadonly\fP .nf Download the resolved package set without executing an RPM transaction. Used with \fBinstall\fP and \fBupgrade\fP commands. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-offline\fP .nf Store the transaction to be performed offline. See offline command \%<#\:offline-command-ref-label>, \fBdnf5\-offline(8)\fP\&. .fi .sp .TP .B \fB\-\-store=PATH\fP .nf Store the current transaction in a directory at the specified \fBPATH\fP instead of running it. The stored transaction can be performed by the replay command \%<#\:replay-command-ref-label>, \fBdnf5\-replay(8)\fP\&. Note that repository ids in the stored transaction are mangled to \fB@stored_transaction(repo_id)\fP this is required because during replaying the stored repositories are recreated and they might collide with already present repositories (this doesn\(aqt apply to the special @System repository). .fi .sp .UNINDENT .SH EXAMPLES .INDENT 0.0 .TP .B \fBdnf5 environment list\fP .nf Show list of all environments. .fi .sp .TP .B \fBdnf5 environment info \(dqKDE Plasma Workspaces\(dq\fP .nf Show detailed info about the \fBKDE\fP environment. .fi .sp .UNINDENT .SH SEE ALSO .INDENT 0.0 .INDENT 3.5 .nf \fBdnf5\-comps(7)\fP, Comps groups and environments \%<#\:comps-misc-ref-label> \fBdnf5\-specs(7)\fP, Patterns specification \%<#\:specs-misc-ref-label> .fi .sp .UNINDENT .UNINDENT .SH Author See AUTHORS.md in dnf5 source distribution. .SH Copyright Contributors to the dnf5 project. .\" End of generated man page.