Debian Codegraph @

upstream/opensuse-tumbleweed/man8/dnf5-environment.8

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "DNF5-ENVIRONMENT" "8" "Feb 19, 2026" "" "dnf5"
32 .SH NAME
33 dnf5-environment \- Environment Command
34 .SH SYNOPSIS
35 .sp
36 \fBdnf5 environment {list|info} [options] [<environment\-spec>...]\fP
37 .sp
38 \fBdnf5 environment {install|remove|upgrade} [options] <group\-spec|environment\-spec>...\fP
39 .SH DESCRIPTION
40 .sp
41 The \fBenvironment\fP command in \fBDNF5\fP offers several queries for getting information
42 about environments and groups related to them and it is also used for environment installation.
43 To query groups, use separate \fBgroup\fP command.
44 .sp
45 Optional \fBenvironment\-spec\fP arguments can be passed to filter environments with given IDs or names.
46 The install, remove and upgrade commands take both \fBenvironment\-spec\fP and \fBgroup\-spec\fP, but in case
47 both environments and groups match, only environments are affected.
48 .SH SUBCOMMANDS
49 .INDENT 0.0
50 .TP
51 .B \fBlist\fP
52 List all matching environments, either among installed or available environments. If
53 nothing is specified, list all known environments. \fB\-\-installed\fP and \fB\-\-available\fP
54 options narrow down the requested list.
55 .TP
56 .B \fBinfo\fP
57 Print detailed information about environments.
58 The command accepts the same options as the \fBlist\fP subcommand.
59 .TP
60 .B \fBinstall\fP
61 Mark the specified environments or groups installed and install groups and packages they
62 contain.
63 .sp
64 If an environments or group is already (partially) installed, the command installs the
65 missing groups and packages it contains.
66 .sp
67 In case both groups and environments match, only environments are affected.
68 .sp
69 If the \fB\-\-with\-optional\fP option is used, also include \fBOptional\fP packages of groups. By default,
70 all \fBMandatory\fP and \fBDefault\fP packages will be installed whenever possible. \fBConditional\fP
71 packages are installed if they meet their requirement. This can be configured by
72 \fBdnf5.conf(5)\fP, group_package_types \%<#\:group-package-types-options-label>\&.
73 .sp
74 If the \fB\-\-no\-packages\fP option is used, no packages will be installed by this command.
75 Only currently installed group packages are considered to be installed with the groups.
76 .TP
77 .B \fBremove\fP
78 Mark the specified environments or groups removed and remove groups and packages they contain
79 unless they belong to another installed environment or group, were installed explicitly by the
80 user or (in case of packages) were installed as a dependency.
81 .sp
82 In case both groups and environments match, only environments are affected.
83 .sp
84 If the \fB\-\-no\-packages\fP option is used, no packages will be removed by this command.
85 .TP
86 .B \fBupgrade\fP
87 Upgrade a definition of the specified environments and groups and the groups and packages they
88 contain. If new groups or packages have been added to the current definitions since the
89 environments or groups were installed, the new groups and packages will be installed. Likewise,
90 if some groups or packages have been removed from the definition, they will be removed
91 unless they were installed for a different reason (belong to another installed environment or
92 group, were installed explicitly by the user or were installed as a dependency).
93 .sp
94 In case both groups and environments match, only environments are affected.
95 .UNINDENT
96 .SH OPTIONS FOR LIST AND INFO
97 .INDENT 0.0
98 .TP
99 .B \fB\-\-available\fP
100 .nf
101 Show only available environments. Those which are not installed, but known to \fBDNF5\fP\&.
102 .fi
103 .sp
104 .TP
105 .B \fB\-\-installed\fP
106 .nf
107 Show only installed environments.
108 .fi
109 .sp
110 .UNINDENT
111 .SH OPTIONS FOR INSTALL, REMOVE AND UPGRADE
112 .INDENT 0.0
113 .TP
114 .B \fB\-\-with\-optional\fP
115 .nf
116 Include optional packages from the groups.
117 Used with \fBinstall\fP command.
118 .fi
119 .sp
120 .TP
121 .B \fB\-\-no\-packages\fP
122 .nf
123 Operate exclusively on the environments and groups without manipulating any packages.
124 Used with \fBinstall\fP and \fBremove\fP commands.
125 .fi
126 .sp
127 .TP
128 .B \fB\-\-allowerasing\fP
129 .nf
130 Allow removing of installed packages to resolve any potential dependency problems.
131 Used with \fBinstall\fP and \fBupgrade\fP commands.
132 .fi
133 .sp
134 .TP
135 .B \fB\-\-skip\-broken\fP
136 .nf
137 Resolve any dependency problems by removing packages that are causing problems from the transaction.
138 Used with \fBinstall\fP command.
139 .fi
140 .sp
141 .TP
142 .B \fB\-\-skip\-unavailable\fP
143 .nf
144 Allow skipping packages that are not possible to install or upgrade.
145 Used with \fBinstall\fP and \fBupgrade\fP commands.
146 .fi
147 .sp
148 .TP
149 .B \fB\-\-allow\-downgrade\fP
150 .nf
151 Enable downgrade of dependencies when resolving the requested operation.
152 Used with \fBinstall\fP and \fBupgrade\fP commands.
153 .fi
154 .sp
155 .TP
156 .B \fB\-\-no\-allow\-downgrade\fP
157 .nf
158 Disable downgrade of dependencies when resolving the requested operation.
159 Used with \fBinstall\fP and \fBupgrade\fP commands.
160 .fi
161 .sp
162 .TP
163 .B \fB\-\-downloadonly\fP
164 .nf
165 Download the resolved package set without executing an RPM transaction.
166 Used with \fBinstall\fP and \fBupgrade\fP commands.
167 .fi
168 .sp
169 .UNINDENT
170 .INDENT 0.0
171 .TP
172 .B \fB\-\-offline\fP
173 .nf
174 Store the transaction to be performed offline. See offline command \%<#\:offline-command-ref-label>, \fBdnf5\-offline(8)\fP\&.
175 .fi
176 .sp
177 .TP
178 .B \fB\-\-store=PATH\fP
179 .nf
180 Store the current transaction in a directory at the specified \fBPATH\fP instead of running it.
181 The stored transaction can be performed by the replay command \%<#\:replay-command-ref-label>, \fBdnf5\-replay(8)\fP\&.
182 Note that repository ids in the stored transaction are mangled to \fB@stored_transaction(repo_id)\fP this is required
183 because during replaying the stored repositories are recreated and they might collide with already present repositories
184 (this doesn\(aqt apply to the special @System repository).
185 .fi
186 .sp
187 .UNINDENT
188 .SH EXAMPLES
189 .INDENT 0.0
190 .TP
191 .B \fBdnf5 environment list\fP
192 .nf
193 Show list of all environments.
194 .fi
195 .sp
196 .TP
197 .B \fBdnf5 environment info \(dqKDE Plasma Workspaces\(dq\fP
198 .nf
199 Show detailed info about the \fBKDE\fP environment.
200 .fi
201 .sp
202 .UNINDENT
203 .SH SEE ALSO
204 .INDENT 0.0
205 .INDENT 3.5
206 .nf
207 \fBdnf5\-comps(7)\fP, Comps groups and environments \%<#\:comps-misc-ref-label>
208 \fBdnf5\-specs(7)\fP, Patterns specification \%<#\:specs-misc-ref-label>
209 .fi
210 .sp
211 .UNINDENT
212 .UNINDENT
213 .SH Author
214 See AUTHORS.md in dnf5 source distribution.
215 .SH Copyright
216 Contributors to the dnf5 project.
217 .\" End of generated man page.