Debian Codegraph @

upstream/opensuse-leap-16-1/man7/dnf5-changes-from-dnf4.7

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "DNF5-CHANGES-FROM-DNF4" "7" "Apr 29, 2025" "" "dnf5"
31 .SH NAME
32 dnf5-changes-from-dnf4 \- Changes from the DNF4
33 .sp
34 This chapter describes the differences between \X'tty: link https://github.com/rpm-software-management/dnf5'\fI\%DNF5\fP\X'tty: link' and \X'tty: link https://github.com/rpm-software-management/dnf'\fI\%DNF\fP\X'tty: link'\&.
35 .SH CHANGES ON THE CLI
36 .SS Options
37 .SS Global options scoping
38 .sp
39 Options that cannot be applied to all commands or may be applicable but have no effect are removed from general options and implemented only for related commands.
40 .sp
41 Examples: \fB\-\-best\fP, \fB\-\-no\-best\fP are only relevant to several transaction commands.
42 .SS Options renaming
43 .sp
44 Renaming boolean options to the following formats:
45 .INDENT 0.0
46 .INDENT 3.5
47 .INDENT 0.0
48 .IP \(bu 2
49 \fB\-\-<option>\fP and \fB\-\-no\-<option>\fP
50 .IP \(bu 2
51 \fB\-\-enable\-<option>\fP and \fB\-\-disable\-<option>\fP
52 .UNINDENT
53 .UNINDENT
54 .UNINDENT
55 .sp
56 The options with original names are retained for now as compatibility aliases.
57 .sp
58 Examples: \fB\-\-best\fP and \fB\-\-no\-best\fP\&.
59 .SS Strict behavior
60 .INDENT 0.0
61 .INDENT 3.5
62 .INDENT 0.0
63 .IP \(bu 2
64 Options \fB\-\-disable\-repo=REPO_ID\fP and \fB\-\-setopt=[REPO_ID.]OPTION=VALUE\fP now consistently result in an error when provided with an invalid \fBREPO_ID\fP\&.
65 .IP \(bu 2
66 The behavior is now aligned with the \fB\-\-repo=REPO_ID\fP and \fB\-\-enable\-repo=REPO_ID\fP\&.
67 .IP \(bu 2
68 The \fBstrict\fP configuration option is no longer considered, see the \fI\%strict option deprecation\fP for more information.
69 .UNINDENT
70 .UNINDENT
71 .UNINDENT
72 .SS No value separator after short options
73 .sp
74 Short options do not have a separator between the option name and the option
75 value. E.g. \fBdnf \-x package\fP is equivalent to \fBdnf \-\-exclude package\fP and
76 \fBdnf \-\-exclude=package\fP long forms. But \fBdnf \-x=package\fP means
77 \fBdnf \-\-exclude =package\fP\&.
78 .SS Changes to individual options
79 .INDENT 0.0
80 .TP
81 .B \fB\-4/\-6\fP
82 .INDENT 7.0
83 .IP \(bu 2
84 Dropped. Now only the \fBip_resolve\fP configuration option is available.
85 .UNINDENT
86 .UNINDENT
87 .INDENT 0.0
88 .TP
89 .B \fB\-\-disableexcludes\fP and \fB\-\-disableexcludepkgs\fP
90 .INDENT 7.0
91 .IP \(bu 2
92 Dropped. Now only the \fBdisable_excludes\fP configuration option is available.
93 .UNINDENT
94 .TP
95 .B \fB\-\-disable, \-\-enable\fP
96 .INDENT 7.0
97 .IP \(bu 2
98 Dropped along with the previously existing alternatives \fB\-\-set\-disabled\fP and \fB\-\-set\-enabled\fP\&.
99 .IP \(bu 2
100 Currently, this can only be achieved through the \fI\%config\-manager\fP plugin.
101 .INDENT 2.0
102 .IP \(bu 2
103 For example, to disable the \fBfedora\fP repository: \fBdnf config\-manager setopt fedora.enabled=0\fP\&.
104 .UNINDENT
105 .UNINDENT
106 .TP
107 .B \fB\-\-downloaddir\fP
108 .INDENT 7.0
109 .IP \(bu 2
110 Dropped. Now only the \fB\-\-destdir\fP is used for the \fBdownload\fP command.
111 .IP \(bu 2
112 When downloading packages using the \fBsystem\-upgrade\fP or \fBoffline\fP command, the target path construction now utilizes the configured \fBinstallroot\fP and \fBcachedir\fP options.
113 .UNINDENT
114 .TP
115 .B \fB\-e, \-\-errorlevel\fP
116 .INDENT 7.0
117 .IP \(bu 2
118 Both the \fB\-\-errorlevel\fP option and \fBerrorlevel\fP configuration option are dropped.
119 .UNINDENT
120 .TP
121 .B \fB\-\-help\-cmd\fP
122 .INDENT 7.0
123 .IP \(bu 2
124 Dropped. Now only the \fB\-h\fP or \fB\-\-help\fP options are available.
125 .UNINDENT
126 .TP
127 .B \fB\-\-installroot\fP
128 .INDENT 7.0
129 .IP \(bu 2
130 New behavior introduced to define from which place the configuration and variables are loaded.
131 .IP \(bu 2
132 See the \fI\%installroot documentation\fP for more information.
133 .UNINDENT
134 .TP
135 .B \fB\-\-noautoremove\fP
136 .INDENT 7.0
137 .IP \(bu 2
138 Applicable only for the \fBremove\fP command now. As a workaround for other commands, you can use \fB\-\-setopt=clean_requirements_on_remove=False\fP\&.
139 .UNINDENT
140 .TP
141 .B \fB\-\-obsoletes\fP
142 .INDENT 7.0
143 .IP \(bu 2
144 Dropped. Now only the \fBobsoletes\fP configuration option is available.
145 .UNINDENT
146 .TP
147 .B \fB\-R, \-\-randomwait\fP
148 .INDENT 7.0
149 .IP \(bu 2
150 Dropped.
151 .UNINDENT
152 .TP
153 .B \fB\-\-rpmverbosity\fP
154 .INDENT 7.0
155 .IP \(bu 2
156 Dropped. Now only the \fBrpmverbosity\fP configuration option is available.
157 .UNINDENT
158 .TP
159 .B \fB\-\-sec\-severity\fP
160 .INDENT 7.0
161 .IP \(bu 2
162 Renamed to \fB\-\-advisory\-severities\fP\&.
163 .UNINDENT
164 .TP
165 .B \fB\-v, \-\-verbose\fP
166 .INDENT 7.0
167 .IP \(bu 2
168 Not implemented at present. May be added for specific commands in the future.
169 .UNINDENT
170 .TP
171 .B \fB\-\-version\fP
172 .INDENT 7.0
173 .IP \(bu 2
174 Behavior is different now. See the \fI\%main man page\fP for more details.
175 .UNINDENT
176 .UNINDENT
177 .SS Newly introduced options
178 .INDENT 0.0
179 .TP
180 .B \fB\-\-allow\-downgrade\fP
181 .INDENT 7.0
182 .IP \(bu 2
183 Along with \fB\-\-no\-allow\-downgrade\fP, these options enable/disable the downgrade of dependencies when resolving transactions.
184 .IP \(bu 2
185 New respective configuration options have also been created.
186 .IP \(bu 2
187 Applicable to \fBinstall\fP, \fBupgrade\fP, and related commands.
188 .UNINDENT
189 .TP
190 .B \fB\-\-dump\-main\-config\fP
191 .INDENT 7.0
192 .IP \(bu 2
193 Along with related \fB\-\-dump\-repo\-config=REPO_ID\fP, these are new options to print configuration values on the standard output.
194 .UNINDENT
195 .TP
196 .B \fB\-\-offline\fP
197 .INDENT 7.0
198 .IP \(bu 2
199 Store the transaction to be performed offline.
200 .IP \(bu 2
201 Applicable to all relevant transactional commands.
202 .IP \(bu 2
203 See the \fI\%Offline command\fP for more information.
204 .UNINDENT
205 .TP
206 .B \fB\-\-show\-new\-leaves\fP
207 .INDENT 7.0
208 .IP \(bu 2
209 Show newly installed leaf packages and packages that became leaves after a transaction.
210 .UNINDENT
211 .TP
212 .B \fB\-\-skip\-unavailable\fP
213 .INDENT 7.0
214 .IP \(bu 2
215 Allow skipping packages that are not available in repositories.
216 .IP \(bu 2
217 Not to be confused with the \fI\%skip_if_unavailable\fP configuration option.
218 .IP \(bu 2
219 Applicable to \fBinstall\fP, \fBupgrade\fP, and related commands.
220 .IP \(bu 2
221 See also the \fI\%strict option deprecation\fP for more information.
222 .UNINDENT
223 .TP
224 .B \fB\-\-use\-host\-config\fP
225 .INDENT 7.0
226 .IP \(bu 2
227 See the \fI\%main man page\fP for more details.
228 .UNINDENT
229 .UNINDENT
230 .SS Commands
231 .SS Optional subcommands
232 .sp
233 Commands cannot have optional subcommands. Optional subcommands were ambiguous,
234 making it unclear whether the input was intended as a command argument or a subcommand. Subcommands are now mandatory if present.
235 .INDENT 0.0
236 .TP
237 .B Examples:
238 .INDENT 7.0
239 .IP \(bu 2
240 Before: \fBdnf history <transaction ID>\fP Now: \fBdnf history info <transaction ID>\fP
241 .IP \(bu 2
242 Before: \fBdnf updateinfo\fP Now: \fBdnf updateinfo summary\fP
243 .UNINDENT
244 .UNINDENT
245 .SS Changes to individual commands
246 .INDENT 0.0
247 .TP
248 .B \fBalias\fP
249 .INDENT 7.0
250 .IP \(bu 2
251 Dropped. The command has been replaced by a different functionality.
252 .IP \(bu 2
253 See the \fI\%Aliases for command line arguments\fP for more information.
254 .UNINDENT
255 .TP
256 .B \fBautomatic\fP
257 .INDENT 7.0
258 .IP \(bu 2
259 Now a DNF5 plugin.
260 .IP \(bu 2
261 The specific systemd units, \fBdnf\-automatic\-download\fP, \fBdnf\-automatic\-install\fP, and \fBdnf\-automatic\-notifyonly\fP, have been dropped. Only one \fBdnf5\-automatic\fP timer is shipped.
262 .IP \(bu 2
263 The \fBemitters.send_error_messages\fP config option has been dropped. DNF5 automatic always informs the user about failed operations using configured emitters.
264 .IP \(bu 2
265 See the \fI\%Automatic command\fP for more information.
266 .UNINDENT
267 .TP
268 .B \fBautoremove\fP
269 .INDENT 7.0
270 .IP \(bu 2
271 Dropped the \fB<spec>\fP positional argument since the use case is sufficiently covered by the \fBremove\fP command.
272 .IP \(bu 2
273 Specific variants of the command, \fBautoremove\-n\fP, \fBautoremove\-na\fP, and \fBautoremove\-nevra\fP, are not supported anymore.
274 .UNINDENT
275 .TP
276 .B \fBbuilddep\fP
277 .INDENT 7.0
278 .IP \(bu 2
279 The \fB\-\-spec\fP and \fB\-\-srpm\fP options only apply to arguments that follow them. This allows for use cases that combine spec files and source RPMs (e.g., \fBdnf5 builddep \-\-spec pkg1.spec.in \-\-srpm pkg2.src.rpm\fP). However, the previously supported syntax \fBdnf builddep pkg1.spec.in \-\-spec\fP no longer has any effect.
280 .UNINDENT
281 .TP
282 .B \fBconfig\-manager\fP
283 .INDENT 7.0
284 .IP \(bu 2
285 New behavior introduced.
286 .IP \(bu 2
287 Parameters are replaced by subcommands.
288 .INDENT 2.0
289 .IP \(bu 2
290 Examples:
291 .INDENT 2.0
292 .IP \(bu 2
293 Before: \fB\-\-add\-repo\fP Now: \fBaddrepo\fP
294 .IP \(bu 2
295 Before: \fB\-\-save \-\-setopt\fP Now: \fBsetopt\fP
296 .UNINDENT
297 .UNINDENT
298 .IP \(bu 2
299 Existing repository files are not modified; drop\-in override files are created instead.
300 .IP \(bu 2
301 See the \fI\%config\-manager documentation\fP for more information.
302 .UNINDENT
303 .TP
304 .B \fBdebuginfo\-install\fP
305 .INDENT 7.0
306 .IP \(bu 2
307 Now does not support \fIautoupdate\fP functionality. The permanent enablement of debug repositories can be achieved
308 using \fIconfig\-manager\fP command.
309 .UNINDENT
310 .TP
311 .B \fBdistro\-sync\fP
312 .INDENT 7.0
313 .IP \(bu 2
314 Now when any argument doesn\(aqt match an installed package, DNF5 fails. The behavior can be modified by the \fB\-\-skip\-unavailable\fP option.
315 .IP \(bu 2
316 Dropped \fBdistrosync\fP and \fBdistribution\-synchronization\fP aliases.
317 .UNINDENT
318 .TP
319 .B \fBdowngrade\fP
320 .INDENT 7.0
321 .IP \(bu 2
322 Now when any argument doesn\(aqt match an installed package, DNF5 fails. The behavior can be modified by the \fB\-\-skip\-unavailable\fP option.
323 .UNINDENT
324 .TP
325 .B \fBdownload\fP
326 .INDENT 7.0
327 .IP \(bu 2
328 Option \fB\-\-source\fP was renamed to \fB\-\-srpm\fP\&.
329 .IP \(bu 2
330 Dropped \fB\-\-downloaddir\fP argument, only \fB\-\-destdir\fP is supported now.
331 .UNINDENT
332 .TP
333 .B \fBgroup\fP
334 .INDENT 7.0
335 .IP \(bu 2
336 New option \fB\-\-contains\-pkgs\fP to filter only groups containing specific packages.
337 .IP \(bu 2
338 Dropped \fB\-\-ids\fP argument as group ids are always in the output now.
339 .IP \(bu 2
340 Dropped \fBgroup mark install\fP and \fBgroup mark remove\fP subcommands in favor of the new \fB\-\-no\-packages\fP option for the \fBinstall\fP and \fBremove\fP commands.
341 .INDENT 2.0
342 .IP \(bu 2
343 E.g. to mark a group as installed without touching any packages, \fBdnf5 group install \-\-no\-packages <group_id>\fP command can be used.
344 .UNINDENT
345 .IP \(bu 2
346 Dropped \fBgroupinstall\fP alias. It is replaced by \fBdnf group install\fP\&.
347 .IP \(bu 2
348 Dropped \fBgroupinfo\fP alias. It is replaced by \fBdnf group info\fP\&.
349 .IP \(bu 2
350 Dropped \fBgrouplist\fP alias. It is replaced by \fBdnf group list\fP\&.
351 .IP \(bu 2
352 Dropped \fBgrouperase\fP alias. It is replaced by \fBdnf group remove\fP\&.
353 .IP \(bu 2
354 Dropped \fBgroupremove\fP alias. It is replaced by \fBdnf group remove\fP\&.
355 .IP \(bu 2
356 Dropped \fBgroupupdate\fP alias. It is replaced by \fBdnf group upgrade\fP\&.
357 .IP \(bu 2
358 Dropped \fBgroups\fP alias. It is replaced by \fBdnf group\fP\&.
359 .UNINDENT
360 .TP
361 .B \fBhelp\fP
362 .INDENT 7.0
363 .IP \(bu 2
364 Dropped. The functionality is replaced by the \fB\-\-help\fP option.
365 .UNINDENT
366 .TP
367 .B \fBhistory\fP
368 .INDENT 7.0
369 .IP \(bu 2
370 Subcommands are now mandatory: \fBdnf history\fP has to be now \fBdnf5 history list\fP\&.
371 .IP \(bu 2
372 The \fBhistory\fP commands now only accept transaction ID arguments; to filter by packages, use the \fB\-\-contains\-pkgs=PACKAGE_NAME,...\fP option, available for \fBlist\fP and \fBinfo\fP\&.
373 .IP \(bu 2
374 \fBundo\fP subcommand now accepts \fB\-\-ignore\-extras\fP and \fB\-\-ignore\-installed\fP like original \fBhistory replay\fP command.
375 .IP \(bu 2
376 \fBuserinstalled\fP subcommand was dropped. It is replaced by \fBdnf repoquery \-\-userinstalled\fP\&.
377 .IP \(bu 2
378 \fBstore\fP subcommand now creates a directory with transaction JSON file instead of a single transaction JSON file directly.
379 .IP \(bu 2
380 \fBstore\fP subcommand\(aqs \fB\-\-output\fP option now accepts a directory path instead of a file. The default is \fB\&./transaction\fP\&.
381 .IP \(bu 2
382 \fBreplay\fP subcommand was moved to a standalone \fBreplay\fP command, that now accepts a path to a directory instead of a file path.
383 The directory can be created with \fB\-\-store\fP option and in addition to the JSON transaction, it can contain packages, group and environments used in the transaction.
384 .IP \(bu 2
385 \fBinfo\fP subcommand now prints a separate section for each selected transaction. It no longer merges all selected transactions into a single transaction section.
386 .UNINDENT
387 .TP
388 .B \fBinfo\fP
389 .INDENT 7.0
390 .IP \(bu 2
391 Dropped \fB\-\-all\fP option since this behavior is the default one.
392 .IP \(bu 2
393 Dropped \fB\-\-updates\fP option, only \fB\-\-upgrades\fP is available now.
394 .UNINDENT
395 .TP
396 .B \fBinstall\fP
397 .INDENT 7.0
398 .IP \(bu 2
399 Dropped \fBinstall\-n\fP, \fBinstall\-na\fP and \fBinstall\-nevra\fP command variants.
400 .UNINDENT
401 .TP
402 .B \fBlist\fP
403 .INDENT 7.0
404 .IP \(bu 2
405 Dropped \fB\-\-all\fP option since this behavior is the default one.
406 .IP \(bu 2
407 Changed the behavior of the \fB\-\-available\fP option.
408 .INDENT 2.0
409 .IP \(bu 2
410 In DNF4, only packages not installed or with higher versions were listed. This behavior remains unchanged when the option is not used, reducing duplications in the \(dqInstalled Packages\(dq section.
411 .IP \(bu 2
412 When using the \fB\-\-available\fP option, DNF5 considers all versions available in enabled repositories, irrespective of the installed version.
413 .UNINDENT
414 .IP \(bu 2
415 For installed packages print from which repository was the package installed and if the information is not available print \fB<unknown>\fP\&. This differs to DNF4 which if the information wasn\(aqt available printed \fB@System\fP\&.
416 .UNINDENT
417 .TP
418 .B \fBmakecache\fP
419 .INDENT 7.0
420 .IP \(bu 2
421 Metadata is now stored in different directories, see the \fBcachedir\fP configuration option \fI\%changes\fP for more details.
422 .IP \(bu 2
423 The \fB\-\-timer\fP option has been dropped in favor of the systemd \fBOnUnitInactiveSec\fP setting in \fBdnf5\-makecache.timer\fP and the \fBConditionACPower\fP setting in \fBdnf5\-makecache.service\fP\&.
424 .UNINDENT
425 .TP
426 .B \fBmark\fP
427 .INDENT 7.0
428 .IP \(bu 2
429 Renaming subcommands to be more intuitive: \fBinstall\fP \-> \fBuser\fP, \fBremove\fP \-> \fBdependency\fP\&.
430 .IP \(bu 2
431 New \fBweak\fP subcommand to mark a package as a weak dependency.
432 .IP \(bu 2
433 Now when any argument doesn\(aqt match an installed package, DNF5 fails. The behavior can be modified by the \fB\-\-skip\-unavailable\fP option.
434 .UNINDENT
435 .TP
436 .B \fBmodule\fP
437 .INDENT 7.0
438 .IP \(bu 2
439 Dropped \fB\-\-all\fP option since this behavior is the default one.
440 .UNINDENT
441 .TP
442 .B \fBneeds\-restarting\fP
443 .INDENT 7.0
444 .IP \(bu 2
445 Command no longer scans for open files to determine outdated files still in use. The default behavior now aligns with DNF 4\(aqs \fB\-\-reboothint\fP, suggesting a system reboot depending on updated packages since the last boot.
446 .IP \(bu 2
447 Reboot recommendations are now triggered if any package with a \fBreboot_suggested\fP advisory has been installed or updated.
448 .IP \(bu 2
449 The \fB\-s, \-\-services\fP option no longer scans for open files. Instead, restarting a service is recommended if any dependency of the service\-providing package or the package itself has been updated since the service started.
450 .IP \(bu 2
451 Dropped \fB\-r, \-\-reboothint\fP option since this behavior is now the default one.
452 .IP \(bu 2
453 Dropped \fB\-u, \-\-useronly\fP option.
454 .UNINDENT
455 .TP
456 .B \fBoffline\-distrosync\fP
457 .INDENT 7.0
458 .IP \(bu 2
459 Now it\(aqs an alias of \fBdnf5 distro\-sync \-\-offline\fP\&.
460 .UNINDENT
461 .TP
462 .B \fBoffline\-upgrade\fP
463 .INDENT 7.0
464 .IP \(bu 2
465 Now it\(aqs an alias of \fBdnf5 upgrade \-\-offline\fP\&.
466 .UNINDENT
467 .TP
468 .B \fBremove\fP
469 .INDENT 7.0
470 .IP \(bu 2
471 Command no longer removes packages according to provides, but only based on NEVRA or file provide match.
472 .IP \(bu 2
473 Dropped commands \fBremove\-n\fP, \fBremove\-na\fP, \fBremove\-nevra\fP\&.
474 .IP \(bu 2
475 Specific variants of the command, \fBremove\-n\fP, \fBremove\-na\fP, and \fBremove\-nevra\fP, are not supported anymore.
476 .INDENT 2.0
477 .IP \(bu 2
478 Dropped also the related aliases, \fBerase\fP, \fBerase\-n\fP, \fBerase\-na\fP and \fBerase\-nevra\fP\&.
479 .UNINDENT
480 .UNINDENT
481 .TP
482 .B \fBrepoclosure\fP
483 .INDENT 7.0
484 .IP \(bu 2
485 Dropped \fB\-\-pkg\fP option. Positional arguments can now be used to specify packages to check closure for.
486 .UNINDENT
487 .TP
488 .B \fBreposync\fP
489 .INDENT 7.0
490 .IP \(bu 2
491 Dropped \fB\-\-downloadcomps\fP option. Consider using \fB\-\-download\-metadata\fP option which downloads all available repository metadata, not only comps groups.
492 .UNINDENT
493 .TP
494 .B \fBrepolist\fP
495 .INDENT 7.0
496 .IP \(bu 2
497 The \fBrepolist\fP and \fBrepoinfo\fP commands are now subcommands of the \fBrepo\fP command: \fBrepo list\fP and \fBrepo info\fP\&.
498 .INDENT 2.0
499 .IP \(bu 2
500 Original commands still exist as compatibility aliases.
501 .UNINDENT
502 .IP \(bu 2
503 Options \fB\-v\fP and \fB\-\-verbose\fP have been removed. The functionality is replaced by the \fBrepo info\fP command (already in DNF4 as \fBrepoinfo\fP).
504 .IP \(bu 2
505 When no repositories are configured, empty output is now provided instead of displaying \(dqNo repositories available\(dq.
506 .UNINDENT
507 .TP
508 .B \fBrepoquery\fP
509 .INDENT 7.0
510 .IP \(bu 2
511 Dropped: \fB\-a/\-\-all\fP, \fB\-\-alldeps\fP, \fB\-\-nevra\fP options. Their behavior is and has been the default for both DNF4 and DNF5, so the options are no longer needed.
512 .IP \(bu 2
513 Dropped: \fB\-\-envra\fP, \fB\-\-nvr\fP, \fB\-\-unsatisfied\fP options. They are no longer supported.
514 .IP \(bu 2
515 Dropped: \fBrepoquery\-n\fP, \fBrepoquery\-na\fP and \fBrepoquery\-nevra\fP command variants.
516 .IP \(bu 2
517 Dropped: \fB\-\-archlist\fP alias for \fB\-\-arch\fP\&.
518 .IP \(bu 2
519 Dropped: \fB\-f\fP alias for \fB\-\-file\fP\&. Also, the arguments to \fB\-\-file\fP are separated by commas instead of spaces.
520 .IP \(bu 2
521 Moved \fB\-\-groupmember\fP option to the \fBinfo\fP and \fBlist\fP subcommands of the \fBgroup\fP and \fBadvisory\fP commands, renaming it to \fB\-\-contains\-pkgs\fP\&.
522 .IP \(bu 2
523 \fB\-\-queryformat, \-\-qf\fP no longer prints an additional newline at the end of each formatted string, bringing it closer to the behavior of \fBrpm \-\-query\fP\&.
524 .IP \(bu 2
525 \fB\-\-queryformat\fP no longer supports \fBsize\fP tag because it was printing install size for installed packages and download size for not\-installed packages, which could be confusing.
526 .IP \(bu 2
527 Option \fB\-\-source\fP was renamed to \fB\-\-sourcerpm\fP, and it now matches queryformat\(aqs \fBsourcerpm\fP tag.
528 .IP \(bu 2
529 Option \fB\-\-resolve\fP was changed to \fB\-\-providers\-of=PACKAGE_ATTRIBUTE\fP\&. It no longer interacts with the formatting options such as \fB\-\-requires\fP, \fB\-\-provides\fP, \fB\-\-suggests\fP, etc. Instead, it takes the PACKAGE_ATTRIBUTE value directly.
530 .INDENT 2.0
531 .IP \(bu 2
532 For example, \fBdnf rq \-\-resolve \-\-requires glibc\fP is now \fBdnf rq \-\-providers\-of=requires glibc\fP\&.
533 .UNINDENT
534 .IP \(bu 2
535 See the \fI\%Repoquery command\fP for more information.
536 .UNINDENT
537 .TP
538 .B \fBsystem\-upgrade\fP
539 .INDENT 7.0
540 .IP \(bu 2
541 Moved from a plugin to a built\-in command.
542 .UNINDENT
543 .TP
544 .B \fBupgrade\fP
545 .INDENT 7.0
546 .IP \(bu 2
547 New option \fB\-\-minimal\fP\&.
548 .INDENT 2.0
549 .IP \(bu 2
550 \fBupgrade\-minimal\fP still exists as a compatibility alias for \fBupgrade \-\-minimal\fP\&.
551 .UNINDENT
552 .IP \(bu 2
553 Now when any argument doesn\(aqt match an installed package, DNF5 fails. The behavior can be modified by the \fB\-\-skip\-unavailable\fP option.
554 .IP \(bu 2
555 Dropped \fBupgrade\-to\fP and \fBlocalupdate\fP aliases.
556 .IP \(bu 2
557 Dropped \fB\-\-skip\-broken\fP option, as it was already available in DNF4 only for compatibility reasons with YUM, but has no effect.
558 .INDENT 2.0
559 .IP \(bu 2
560 Instead, decisions about package selection and handling dependency issues are based on the \fI\%best\fP or \fI\%no\-best\fP options.
561 .UNINDENT
562 .UNINDENT
563 .TP
564 .B \fBupdateinfo\fP
565 .INDENT 7.0
566 .IP \(bu 2
567 Renamed the command to \fBadvisory\fP
568 .INDENT 2.0
569 .IP \(bu 2
570 \fBupdateinfo\fP still exists as a compatibility alias.
571 .UNINDENT
572 .IP \(bu 2
573 Subcommands are now mandatory: \fBdnf updateinfo\fP is now \fBdnf5 advisory summary\fP\&.
574 .IP \(bu 2
575 Options \fB\-\-summary\fP, \fB\-\-list\fP and \fB\-\-info\fP have been changed to subcommands. See \fBdnf5 advisory \-\-help\fP\&.
576 .IP \(bu 2
577 Option \fB\-\-sec\-severity\fP has been renamed to \fB\-\-advisory\-severities=ADVISORY_SEVERITY,...\fP\&.
578 .IP \(bu 2
579 The \fBadvisory\fP commands now only accept advisory IDs; to filter by packages, use the \fB\-\-contains\-pkgs=PACKAGE_NAME,...\fP option.
580 .IP \(bu 2
581 Dropped deprecated aliases: \fBlist\-updateinfo\fP, \fBlist\-security\fP, \fBlist\-sec\fP, \fBinfo\-updateinfo\fP, \fBinfo\-security\fP, \fBinfo\-sec\fP, \fBsummary\-updateinfo\fP\&.
582 .IP \(bu 2
583 Dropped \fBupif\fP alias.
584 .UNINDENT
585 .TP
586 .B \fBversionlock\fP
587 .INDENT 7.0
588 .IP \(bu 2
589 New format of the configuration file.
590 .IP \(bu 2
591 See the \fI\%Versionlock command\fP for more information.
592 .UNINDENT
593 .UNINDENT
594 .SH CHANGES ON THE API
595 .SS PackageSet::operator[]
596 .sp
597 It was removed due to insufficient O(n^2) performance.
598 Use PackageSet iterator to access the data instead.
599 .SS Package::get_epoch()
600 .sp
601 The return type was changed from \fBunsigned long\fP to \fBstd::string\fP\&.
602 .SS DNF: Package.size, libdnf: dnf_package_get_size()
603 .sp
604 The return value was ambiguous, returning either package or install size.
605 Use Package::get_download_size() and Package::get_install_size() instead.
606 .SS dnf_sack_set_installonly, dnf_sack_get_installonly, dnf_sack_set_installonly_limit, dnf_sack_get_installonly_limit
607 .sp
608 The functions were dropped as unneeded. The installonly packages are taken directly from main Conf in Base.
609 .SS Query::filter() \- HY_PKG_UPGRADES_BY_PRIORITY, HY_PKG_OBSOLETES_BY_PRIORITY, HY_PKG_LATEST_PER_ARCH_BY_PRIORITY
610 .sp
611 The priority filter was separated into a standalone method.
612 Combine \fBquery.filter_priority()\fP with \fBquery.filter_latest_evr()\fP or another filter to achieve the original
613 functionality.
614 .SS Query::filter() \- HY_PKG_LATEST
615 .sp
616 The filter was replaced with \fBfilter_latest_evr()\fP which has the same behavior as \fBHY_PKG_LATEST_PER_ARCH\fP
617 .SS ConfigMain::proxy_auth_method() and ConfigRepo::proxy_auth_method()
618 .sp
619 The return types were changed. \fBOptionEnum<std::string>\fP was replaced by \fBOptionStringSet\fP\&.
620 A combination of several authentication methods (for example \(dqbasic\(dq and \(dqdigest\(dq) can now be used.
621 This allows using a list of authentication methods in configuration files and the DNF5 command line
622 \(dq\-\-setopt=proxy_auth_method=\(dq.
623 .SH CHANGES TO CONFIGURATION
624 .SS Deprecation of the \fBstrict\fP option
625 .sp
626 \fBstrict\fP configuration option is now deprecated due to its dual functionality:
627 .INDENT 0.0
628 .INDENT 3.5
629 .INDENT 0.0
630 .IP 1. 3
631 It allows the solver to skip uninstallable packages to resolve dependency problems.
632 .IP 2. 3
633 It permits DNF to skip unavailable packages (mostly for the \fBinstall\fP command).
634 .UNINDENT
635 .UNINDENT
636 .UNINDENT
637 .sp
638 To address this, the functionality has been split into two configuration options:
639 .INDENT 0.0
640 .INDENT 3.5
641 .INDENT 0.0
642 .IP \(bu 2
643 \fBskip_broken\fP for uninstallable packages.
644 .IP \(bu 2
645 \fBskip_unavailable\fP for packages not present in repositories.
646 .UNINDENT
647 .UNINDENT
648 .UNINDENT
649 .sp
650 Additionally, corresponding command\-line options \fB\-\-skip\-broken\fP and \fB\-\-skip\-unavailable\fP have been introduced for commands where applicable.
651 .SS Deprecation of the \fBmetadata_timer_sync\fP option
652 .sp
653 The \fBmetadata_timer_sync\fP configuration option is now obsoleted by the \fBdnf5\-makecache.timer\fP systemd timer settings.
654 .SS Deprecation of the \fBretries\fP option
655 .sp
656 The \fBretries\fP configuration option is now deprecated. In dnf4, despite being documented as the number of retries for downloading packages, it was only used to limit the number of package re\-downloads due to deltarpm errors. Deltarpm support is currently not planned for DNF5.
657 .SS Deprecation of the \fBdeltarpm\fP and \fBdeltarpm_percentage\fP options
658 .sp
659 Support for delta RPMs is not planned for DNF5.
660 .SS Changes to individual options
661 .INDENT 0.0
662 .TP
663 .B \fBbest\fP
664 .INDENT 7.0
665 .IP \(bu 2
666 Default value is changed to \fBtrue\fP\&.
667 .IP \(bu 2
668 The new default value ensures that important updates will not be skipped and issues in distribution will be reported earlier.
669 .UNINDENT
670 .UNINDENT
671 .INDENT 0.0
672 .TP
673 .B \fBcachedir\fP
674 .INDENT 7.0
675 .IP \(bu 2
676 The default user cached dir is now at \fB~/.cache/libdnf5\fP\&.
677 .IP \(bu 2
678 The default root cache directory, configured by the \fBsystem_cachedir\fP option, is now \fB/var/cache/libdnf5\fP\&.
679 .IP \(bu 2
680 Users no longer access the root\(aqs cache directly; instead, metadata is copied to the user\(aqs location if it\(aqs empty or invalid.
681 .IP \(bu 2
682 For additional information, refer to the \fI\%Caching\fP man page.
683 .UNINDENT
684 .TP
685 .B \fBcacheonly\fP
686 .INDENT 7.0
687 .IP \(bu 2
688 The option was changed from \fBbool\fP to \fBenum\fP with options \fBall\fP, \fBmetadata\fP and \fBnone\fP\&.
689 .INDENT 2.0
690 .IP \(bu 2
691 This enables users to specify whether to use the cache exclusively for metadata or for both metadata and packages.
692 .UNINDENT
693 .UNINDENT
694 .TP
695 .B \fBdisable_excludes\fP
696 .INDENT 7.0
697 .IP \(bu 2
698 To disable all configuration file excludes, the \fB*\fP glob character is used now instead of the \fBall\fP to unify the behavior with query objects on the API.
699 .UNINDENT
700 .TP
701 .B \fBkeepcache\fP
702 .INDENT 7.0
703 .IP \(bu 2
704 The behavior has been slightly modified, see the \fI\%Caching\fP man page for more information.
705 .UNINDENT
706 .TP
707 .B \fBoptional_metadata_types\fP
708 .INDENT 7.0
709 .IP \(bu 2
710 Default value is now: \fBcomps,updateinfo\fP\&.
711 .IP \(bu 2
712 Supported values are now extended to the following list: \fBcomps\fP, \fBfilelists\fP, \fBother\fP, \fBpresto\fP, \fBupdateinfo\fP\&.
713 .UNINDENT
714 .UNINDENT
715 .SS Newly introduced configuration options
716 .INDENT 0.0
717 .TP
718 .B \fBallow_downgrade\fP
719 .INDENT 7.0
720 .IP \(bu 2
721 New option used to enable or disable downgrade of dependencies when resolving transaction.
722 .UNINDENT
723 .TP
724 .B \fBskip_broken\fP, \fBskip_unavailable\fP, \fBstrict\fP
725 .INDENT 7.0
726 .IP \(bu 2
727 New options \fBskip_broken\fP, \fBskip_unavailable\fP were added due to deprecation of \fBstrict\fP option.
728 .IP \(bu 2
729 See the \fI\%strict deprecation\fP above.
730 .UNINDENT
731 .UNINDENT
732 .SS Dropped configuration options
733 .INDENT 0.0
734 .TP
735 .B \fBarch\fP and \fBbasearch\fP
736 .INDENT 7.0
737 .IP \(bu 2
738 It is no longer possible to change the detected architecute in configuration files.
739 .IP \(bu 2
740 See the \fBdnf5\-forcearch(7)\fP, \fI\%Forcearch parameter\fP for overriding architecture.
741 .UNINDENT
742 .TP
743 .B \fBerrorlevel\fP
744 .INDENT 7.0
745 .IP \(bu 2
746 The option was deprecated in dnf < 5 and is dropped now.
747 .UNINDENT
748 .UNINDENT
749 .SH AUTHOR
750 See AUTHORS.md in dnf5 source distribution.
751 .SH COPYRIGHT
752 Contributors to the dnf5 project.
753 .\" Generated by docutils manpage writer.
754 .