Debian Codegraph @

upstream/opensuse-leap-16-1/man5/dnf5.conf.5

raw
1 '\" t
2 .\" Man page generated from reStructuredText.
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.CONF" "5" "Apr 29, 2025" "" "dnf5"
32 .SH NAME
33 dnf5.conf \- DNF5 Configuration Reference
34 .SH DESCRIPTION
35 .sp
36 \fIDNF5\fP by default uses the global configuration file at /etc/dnf/dnf.conf.
37 .sp
38 The configuration file has INI format consisting of section declaration and name=value options below each on separate
39 line. There are two types of sections in the configuration files: main and repository. Main section defines all
40 global configuration options and should be only one.
41 .sp
42 The repository sections define the configuration for each (remote or local) repository. The section name of the
43 repository in brackets serve as repo ID reference and should be unique across configuration files. The allowed
44 characters of repo ID string are lower and upper case alphabetic letters, digits, \-, _, . and :. The minimal
45 repository configuration file should aside from repo ID consists of baseurl, metalink or mirrorlist option definition.
46 .SH [MAIN] OPTIONS
47 .INDENT 0.0
48 .TP
49 .B \fBallow_downgrade\fP
50 \fI\%boolean\fP
51 .sp
52 If enabled, DNF5 allows downgrading packages while resolving dependencies.
53 .sp
54 Default: \fBTrue\fP\&.
55 .UNINDENT
56 .INDENT 0.0
57 .TP
58 .B \fBallow_vendor_change\fP
59 \fI\%boolean\fP
60 .sp
61 If disabled DNF5 will stick to vendor when upgrading or downgrading rpms.
62 .sp
63 Default: \fBTrue\fP\&.
64 .sp
65 \fBWARNING:\fP
66 .INDENT 7.0
67 .INDENT 3.5
68 This option is currently not supported for \fIdowngrade\fP and \fIdistro\-sync\fP commands
69 .UNINDENT
70 .UNINDENT
71 .UNINDENT
72 .INDENT 0.0
73 .TP
74 .B \fBassumeno\fP
75 \fI\%boolean\fP
76 .sp
77 If enabled DNF5 will assume \fBNo\fP where it would normally prompt for confirmation from user input
78 .sp
79 Default: \fBFalse\fP\&.
80 .UNINDENT
81 .INDENT 0.0
82 .TP
83 .B \fBassumeyes\fP
84 \fI\%boolean\fP
85 .sp
86 If enabled DNF5 will assume \fBYes\fP where it would normally prompt for
87 confirmation from user input (see also \fI\%defaultyes\fP).
88 .sp
89 Default: \fBFalse\fP\&.
90 .UNINDENT
91 .INDENT 0.0
92 .TP
93 .B \fBbest\fP
94 \fI\%boolean\fP
95 .sp
96 If \fBTrue\fP, instructs the solver to either use a package with the highest
97 available version or fail. If \fBFalse\fP, do not fail if the latest version
98 cannot be installed and go with the lower version.
99 .sp
100 Default: \fBTrue\fP\&.
101 .sp
102 \fBNOTE:\fP
103 .INDENT 7.0
104 .INDENT 3.5
105 This option in particular can be set in your configuration file by
106 your distribution\&.
107 .UNINDENT
108 .UNINDENT
109 .UNINDENT
110 .INDENT 0.0
111 .TP
112 .B \fBcachedir\fP
113 \fI\%string\fP
114 .sp
115 Path to a directory used by various DNF5 subsystems for storing cache data
116 including repositories metadata and downloaded packages.
117 Has a reasonable root\-writable default depending on the distribution. DNF5
118 needs to be able to create files and directories at this location.
119 .sp
120 Regular user default: \fB~/.cache/libdnf5\fP\&.
121 .sp
122 For superuser the value is overwritten by system_cachedir option.
123 .UNINDENT
124 .INDENT 0.0
125 .TP
126 .B \fBcacheonly\fP
127 \fI\%string\fP
128 .sp
129 Can be \fBall\fP, \fBmetadata\fP, \fBnone\fP\&.
130 .sp
131 If set to \fBall\fP DNF5 will run entirely from system cache, will not update
132 the cache and will use the system cache even if it is expired.
133 .sp
134 If set to \fBmetadata\fP DNF5 will cache metadata only.
135 .sp
136 Default: \fBnone\fP\&.
137 .sp
138 \fBNOTE:\fP
139 .INDENT 7.0
140 .INDENT 3.5
141 API Notes: Must be set before repository objects are created. Plugins must set
142 this in the pre_config hook. Later changes are ignored.
143 .UNINDENT
144 .UNINDENT
145 .UNINDENT
146 .INDENT 0.0
147 .TP
148 .B \fBcheck_config_file_age\fP
149 \fI\%boolean\fP
150 .sp
151 If enabled DNF5 should automatically expire metadata of repos, which are older than
152 their corresponding configuration file (usually the dnf.conf file and the foo.repo file).
153 .sp
154 Default: \fBTrue\fP\&.
155 .sp
156 \fBNOTE:\fP
157 .INDENT 7.0
158 .INDENT 3.5
159 Expire of metadata is also affected by metadata age. See also
160 .sp
161 \fI\%metadata_expire\fP\&.
162 .UNINDENT
163 .UNINDENT
164 .UNINDENT
165 .INDENT 0.0
166 .TP
167 .B \fBclean_requirements_on_remove\fP
168 \fI\%boolean\fP
169 .sp
170 If enabled, DNF5 will remove dependencies that are no longer used during \fBdnf remove\fP\&.
171 A package only qualifies for removal via \fBclean_requirements_on_remove\fP if it was
172 installed through DNF5 but not on explicit user request, i.e. it was pulled in as a dependency.
173 .sp
174 \fI\%installonlypkgs\fP are never automatically removed.
175 .sp
176 Default: \fBTrue\fP\&.
177 .UNINDENT
178 .INDENT 0.0
179 .TP
180 .B \fBdebugdir\fP
181 \fI\%string\fP
182 .sp
183 Location where libsolv debug files will be created when enabled
184 by debug_solver\&.
185 .sp
186 Default \fI\&./debugdata\fP\&.
187 .UNINDENT
188 .INDENT 0.0
189 .TP
190 .B \fBdebug_solver\fP
191 \fI\%boolean\fP
192 .sp
193 If enabled, libsolv debug files will be created when solving the
194 transaction. The debug files are created in the debugdir directory.
195 .sp
196 Default: \fBFalse\fP\&.
197 .UNINDENT
198 .INDENT 0.0
199 .TP
200 .B \fBdefaultyes\fP
201 \fI\%boolean\fP
202 .sp
203 If enabled, the default answer to user confirmation prompts will be \fBYes\fP\&.
204 Not to be confused with \fI\%assumeyes\fP which will not prompt at all.
205 .sp
206 Default: \fBFalse\fP\&.
207 .UNINDENT
208 .INDENT 0.0
209 .TP
210 .B \fBdestdir\fP
211 \fI\%string\fP
212 .sp
213 Redirect downloaded packages to provided directory.
214 .sp
215 Default: <package repository \fI\%cachedir\fP>/packages
216 .UNINDENT
217 .INDENT 0.0
218 .TP
219 .B \fBexclude_from_weak\fP
220 \fI\%list\fP
221 .sp
222 Prevent installing packages as weak dependencies (recommends or
223 supplements). The packages can be specified by a name or a glob and
224 separated by a comma.
225 .sp
226 Defaults to [].
227 .UNINDENT
228 .INDENT 0.0
229 .TP
230 .B \fBexclude_from_weak_autodetect\fP
231 \fI\%boolean\fP
232 .sp
233 If enabled, DNF5 will autodetect unmet weak dependencies (recommends or
234 supplements) of packages installed on the system. Providers of these weak
235 dependencies will not be installed by dnf as weak dependencies any more
236 (they will still be installed if pulled in as a regular dependency).
237 .sp
238 Defaults to true.
239 .UNINDENT
240 .INDENT 0.0
241 .TP
242 .B \fBexcludeenvs\fP
243 \fI\%list\fP
244 .sp
245 Exclude environments, specified by an id or a glob and separated by a comma, from all operations.
246 .sp
247 Can be disabled using \fBdisable_excludes\fP config option.
248 .sp
249 Default: \fB[]\fP\&.
250 .UNINDENT
251 .INDENT 0.0
252 .TP
253 .B \fBexcludegroups\fP
254 \fI\%list\fP
255 .sp
256 Exclude groups, specified by an id or a glob and separated by a comma, from all operations.
257 .sp
258 Can be disabled using \fBdisable_excludes\fP config option.
259 .sp
260 Default: \fB[]\fP\&.
261 .UNINDENT
262 .INDENT 0.0
263 .TP
264 .B \fBgroup_package_types\fP
265 \fI\%list\fP
266 .sp
267 List of the following: \fBoptional\fP, \fBdefault\fP, \fBmandatory\fP or \fBconditional\fP\&.
268 .sp
269 Tells DNF5 which type of packages in groups will be installed when \(aqgroup install <group\-spec>\(aq
270 or \(aqinstall @<group\-spec>\(aq is called.
271 .sp
272 Default: \fBdefault, mandatory, conditional\fP\&.
273 .UNINDENT
274 .INDENT 0.0
275 .TP
276 .B \fBignorearch\fP
277 \fI\%boolean\fP
278 .sp
279 If enabled, RPM will allow attempts to install packages incompatible with the CPU\(aqs architecture.
280 .sp
281 Default: \fBFalse\fP\&.
282 .UNINDENT
283 .INDENT 0.0
284 .TP
285 .B \fBinstallonlypkgs\fP
286 \fI\%list\fP
287 .sp
288 List of provide names of packages that should only ever be installed, never
289 upgraded. Kernels in particular fall into this category.
290 These packages are never removed by \fBdnf autoremove\fP even if they were
291 installed as dependencies (see
292 \fI\%clean_requirements_on_remove\fP
293 for auto removal details).
294 This option append the list values to the default installonlypkgs list used
295 by DNF5. The number of kept package versions is regulated
296 by \fI\%installonly_limit\fP\&.
297 .UNINDENT
298 .INDENT 0.0
299 .TP
300 .B \fBinstallonly_limit\fP
301 \fI\%integer\fP
302 .sp
303 Number of \fI\%installonly packages\fP allowed to be installed
304 concurrently.
305 .sp
306 \fB1\fP is explicitly not allowed since it complicates kernel upgrades due to protection of
307 the running kernel from removal.
308 .sp
309 Minimum is \fB2\fP\&.
310 .sp
311 \fB0\fP means unlimited number of installonly packages.
312 .sp
313 Default: \fB3\fP\&.
314 .UNINDENT
315 .INDENT 0.0
316 .TP
317 .B \fBinstallroot\fP
318 \fI\%string\fP
319 .sp
320 The root of the filesystem for all packaging operations.
321 It requires an absolute path.
322 See also \fI\%\-\-installroot commandline option\fP\&.
323 .sp
324 Default: \fB/\fP\&.
325 .UNINDENT
326 .INDENT 0.0
327 .TP
328 .B \fBinstall_weak_deps\fP
329 \fI\%boolean\fP
330 .sp
331 If enabled, when a new package is about to be installed, all packages linked by weak dependency
332 relation (Recommends or Supplements flags) with this package will be pulled into the transaction.
333 .sp
334 Default: \fBTrue\fP\&.
335 .UNINDENT
336 .INDENT 0.0
337 .TP
338 .B \fBkeepcache\fP
339 \fI\%boolean\fP
340 .sp
341 If enabled, keeps downloaded packages in the cache. If disabled cache will persist
342 until the next successful transaction even if no packages have been installed.
343 .sp
344 Default: \fBFalse\fP\&.
345 .UNINDENT
346 .INDENT 0.0
347 .TP
348 .B \fBlogdir\fP
349 \fI\%string\fP
350 .sp
351 Directory where the log files will be stored.
352 .sp
353 Regular user default: \fB~/.local/state\fP\&.
354 .sp
355 Superuser default: \fB/var/log\fP\&.
356 .UNINDENT
357 .INDENT 0.0
358 .TP
359 .B \fBlog_rotate\fP
360 \fI\%integer\fP
361 .sp
362 Log files are rotated \fBlog_rotate\fP times before being removed.
363 If \fBlog_rotate\fP is \fB0\fP, the rotation is not performed.
364 .sp
365 Default: \fB4\fP\&.
366 .UNINDENT
367 .INDENT 0.0
368 .TP
369 .B \fBlog_size\fP
370 \fI\%storage size\fP
371 .sp
372 Log files are rotated when they grow bigger than \fBlog_size\fP bytes. If
373 \fBlog_size\fP is \fB0\fP, the rotation is not performed.
374 .sp
375 The size applies for individual log files, not the sum of all log files.
376 See also \fI\%log_rotate\fP\&.
377 .sp
378 Default: \fB1M\fP\&.
379 .UNINDENT
380 .INDENT 0.0
381 .TP
382 .B \fBmodule_platform_id\fP
383 \fI\%string\fP
384 .sp
385 Set this to \fB$name:$stream\fP to override \fBPLATFORM_ID\fP detected from \fB/etc/os\-release\fP\&.
386 It is necessary to perform a system upgrade and switch to a new platform.
387 .sp
388 Default: empty.
389 .UNINDENT
390 .INDENT 0.0
391 .TP
392 .B \fBmodule_stream_switch\fP
393 \fI\%boolean\fP
394 .sp
395 If enabled, allows switching enabled streams of a module.
396 .sp
397 Default: \fBFalse\fP\&.
398 .UNINDENT
399 .INDENT 0.0
400 .TP
401 .B \fBmultilib_policy\fP
402 \fI\%string\fP
403 .sp
404 Controls how multilib packages are treated during install operations.
405 .sp
406 Can either be \fBbest\fP for the depsolver to prefer packages which best match the system\(aqs
407 architecture, or \fBall\fP to install packages for all available architectures.
408 .sp
409 Default: \fBbest\fP\&.
410 .UNINDENT
411 .INDENT 0.0
412 .TP
413 .B \fBobsoletes\fP
414 \fI\%boolean\fP
415 .sp
416 If enabled, DNF5 uses obsoletes processing logic, which means it checks whether
417 any dependencies of given package are no longer required and removes them.
418 .sp
419 Useful when doing distribution level upgrades.
420 .sp
421 It has effect during install/upgrade processes.
422 .sp
423 Command\-line option: \fI\%\-\-obsoletes\fP
424 .sp
425 Default: \fBTrue\fP\&.
426 .UNINDENT
427 .INDENT 0.0
428 .TP
429 .B \fBoptional_metadata_types\fP
430 \fI\%list\fP
431 .sp
432 List of the following: \fBcomps\fP, \fBfilelists\fP, \fBother\fP, \fBpresto\fP, \fBupdateinfo\fP, \fBall\fP
433 .sp
434 Specifies the types of metadata to load in addition to the essential \fBprimary\fP and \fBmodules\fP metadata, which are always loaded. Note that individual DNF commands may extend this list at runtime.
435 .sp
436 Note: The list includes only metadata types recognized by DNF. However, a repository\(aqs metadata may include various other types (e.g., AppStream or metadata stored as databases instead of XML files). The special value \fBall\fP represents all metadata types present in the repository, including those unknown to DNF.
437 .sp
438 Default: \fBcomps,updateinfo\fP
439 .UNINDENT
440 .INDENT 0.0
441 .TP
442 .B \fBpersistdir\fP
443 \fI\%string\fP
444 .sp
445 Directory where DNF5 stores its persistent data between runs.
446 .sp
447 Default: \fB/var/lib/dnf\fP\&.
448 .UNINDENT
449 .INDENT 0.0
450 .TP
451 .B \fBpluginconfpath\fP
452 \fI\%list\fP
453 .sp
454 List of directories that are searched for libdnf5 plugin configurations to load.
455 .sp
456 All configuration files found in these directories, that are named same as a
457 plugin, are parsed.
458 .sp
459 Default: \fB/etc/dnf/libdnf5\-plugins\fP\&.
460 .UNINDENT
461 .INDENT 0.0
462 .TP
463 .B \fBpluginpath\fP
464 \fI\%list\fP
465 .sp
466 List of directories that are searched for libdnf5 plugins to load. Plugins found in
467 \fIany of the directories\fP in this configuration option are used.
468 .sp
469 Default: \fB/usr/lib64/libdnf5/plugins/\fP
470 .UNINDENT
471 .INDENT 0.0
472 .TP
473 .B \fBplugins\fP
474 \fI\%boolean\fP
475 .sp
476 If enabled, libdnf5 plugins are enabled.
477 .sp
478 Default: \fBTrue\fP\&.
479 .UNINDENT
480 .INDENT 0.0
481 .TP
482 .B \fBprotected_packages\fP
483 \fI\%list\fP
484 .sp
485 This append list option contains names of packages that DNF5 should never completely remove.
486 .sp
487 They are protected via Obsoletes as well as user/plugin removals.
488 .sp
489 Default: \fBdnf5,glob:/etc/dnf/protected.d/*.conf\fP\&.
490 .sp
491 \fBNOTE:\fP
492 .INDENT 7.0
493 .INDENT 3.5
494 Any packages which should be protected can do so by including a file in \fB/etc/dnf/protected.d\fP
495 with their package name in it.
496 .sp
497 DNF5 will protect also the package corresponding to the running version of the kernel. See also
498 \fI\%protect_running_kernel\fP option.
499 .UNINDENT
500 .UNINDENT
501 .UNINDENT
502 .INDENT 0.0
503 .TP
504 .B \fBprotect_running_kernel\fP
505 \fI\%boolean\fP
506 .sp
507 Controls whether the package corresponding to the running version of kernel is protected from removal.
508 .sp
509 Default: \fBTrue\fP\&.
510 .sp
511 \fBNOTE:\fP
512 .INDENT 7.0
513 .INDENT 3.5
514 YUM compatibility option
515 .UNINDENT
516 .UNINDENT
517 .UNINDENT
518 .INDENT 0.0
519 .TP
520 .B \fBrecent\fP
521 \fI\%integer\fP
522 .sp
523 Sets the time period in days used for the \fB\-\-recent\fP option in the \fI\%repoquery\fP,
524 \fI\%info\fP and \fI\%list\fP commands.
525 .sp
526 Default: 7
527 .UNINDENT
528 .INDENT 0.0
529 .TP
530 .B \fBreposdir\fP
531 \fI\%list\fP
532 .sp
533 Repository configuration files locations.
534 .sp
535 The behavior of \fBreposdir\fP could differ when it is used
536 along with \-\fI\%\-installroot\fP option.
537 .sp
538 Default: [\fB/etc/yum.repos.d\fP, \fB/etc/distro.repos.d\fP, \fB/usr/share/dnf5/repos.d\fP]
539 .UNINDENT
540 .INDENT 0.0
541 .TP
542 .B \fBskip_broken\fP
543 \fI\%boolean\fP
544 .sp
545 If enabled, DNF5 will skip uninstallable packages instead of failing while
546 resolving dependencies.
547 .sp
548 Default: \fBFalse\fP\&.
549 .UNINDENT
550 .INDENT 0.0
551 .TP
552 .B \fBskip_unavailable\fP
553 \fI\%boolean\fP
554 .sp
555 If enabled, DNF5 will skip unavailable packages instead of failing while
556 preparing rpm transactions.
557 .sp
558 Default: \fBFalse\fP\&.
559 .UNINDENT
560 .sp
561 \fBsystem_cachedir\fP
562 .INDENT 0.0
563 .INDENT 3.5
564 \fI\%string\fP
565 .sp
566 For superuser overwrites the \fI\%cachedir\fP option value.
567 .sp
568 Allows to differentiate user and superuser cachedir.
569 .sp
570 Default: \fB/var/cache/libdnf5\fP\&.
571 .UNINDENT
572 .UNINDENT
573 .INDENT 0.0
574 .TP
575 .B \fBsystem_state_dir\fP
576 \fI\%string\fP
577 .sp
578 System state files location. See \fBdnf5\-system\-state(7)\fP, \fI\%system state\fP for details.
579 .sp
580 Default: \fB/usr/lib/sysimage/libdnf5\fP\&.
581 .UNINDENT
582 .sp
583 \fBtransaction_history_dir\fP
584 .INDENT 0.0
585 .INDENT 3.5
586 \fI\%string\fP
587 .sp
588 History database location.
589 .sp
590 By default it has the same value as system_state_dir\&.
591 .UNINDENT
592 .UNINDENT
593 .INDENT 0.0
594 .TP
595 .B \fBtsflags\fP
596 \fI\%list\fP
597 .sp
598 List of strings adding extra flags for the RPM transaction.
599 .TS
600 box center;
601 l|l.
602 T{
603 tsflag value
604 T} T{
605 RPM Transaction Flag
606 T}
607 _
608 T{
609 \fBnoscripts\fP
610 T} T{
611 \fBRPMTRANS_FLAG_NOSCRIPTS\fP
612 T}
613 _
614 T{
615 \fBtest\fP
616 T} T{
617 \fBRPMTRANS_FLAG_TEST\fP
618 T}
619 _
620 T{
621 \fBnotriggers\fP
622 T} T{
623 \fBRPMTRANS_FLAG_NOTRIGGERS\fP
624 T}
625 _
626 T{
627 \fBnodocs\fP
628 T} T{
629 \fBRPMTRANS_FLAG_NODOCS\fP
630 T}
631 _
632 T{
633 \fBjustdb\fP
634 T} T{
635 \fBRPMTRANS_FLAG_JUSTDB\fP
636 T}
637 _
638 T{
639 \fBnocontexts\fP
640 T} T{
641 \fBRPMTRANS_FLAG_NOCONTEXTS\fP
642 T}
643 _
644 T{
645 \fBnocaps\fP
646 T} T{
647 \fBRPMTRANS_FLAG_NOCAPS\fP
648 T}
649 _
650 T{
651 \fBnocrypto\fP
652 T} T{
653 \fBRPMTRANS_FLAG_NOFILEDIGEST\fP
654 T}
655 _
656 T{
657 \fBdeploops\fP
658 T} T{
659 \fBRPMTRANS_FLAG_DEPLOOPS\fP
660 T}
661 .TE
662 .sp
663 The \fBnocrypto\fP option will also set the \fB_RPMVSF_NOSIGNATURES\fP and
664 \fB_RPMVSF_NODIGESTS\fP VS flags.
665 .sp
666 The \fBtest\fP option provides a transaction check without performing the transaction.
667 It includes downloading of packages, OpenPGP keys check (including permanent import of
668 additional keys if necessary), and rpm check to prevent file conflicts.
669 .sp
670 The \fBnocaps\fP is supported with rpm\-4.14 or later. When \fBnocaps\fP is used but rpm
671 doesn\(aqt support it, DNF5 only reports it as an invalid tsflag.
672 .sp
673 Default: empty.
674 .UNINDENT
675 .sp
676 \fBuse_host_config\fP
677 .INDENT 0.0
678 .INDENT 3.5
679 Use configuration files and variable definitions from the host system rather
680 than the installroot.
681 \fI\%See\fP \fBdnf5\-installroot(7)\fP for more info.
682 .sp
683 Default: \fBFalse\fP\&.
684 .UNINDENT
685 .UNINDENT
686 .INDENT 0.0
687 .TP
688 .B \fBvarsdir\fP
689 \fI\%list\fP
690 .sp
691 List of directories where variables definition files are looked for.
692 .sp
693 See \fI\%variable files\fP in Configuration reference.
694 .sp
695 Default: \fB/etc/dnf/vars\fP\&.
696 .UNINDENT
697 .INDENT 0.0
698 .TP
699 .B \fBzchunk\fP
700 \fI\%boolean\fP
701 .sp
702 If enabled, repository metadata are compressed using the zchunk format (if available).
703 .sp
704 Default: \fBTrue\fP\&.
705 .UNINDENT
706 .SH [MAIN] OPTIONS - COLORS
707 .INDENT 0.0
708 .TP
709 .B \fBcolor_list_available_upgrade\fP
710 \fI\%color\fP
711 .sp
712 Color of available packages that are newer than installed packages.
713 The option is used during list operations.
714 .sp
715 Default: \fBbold,blue\fP\&.
716 .UNINDENT
717 .INDENT 0.0
718 .TP
719 .B \fBcolor_list_available_downgrade\fP
720 \fI\%color\fP
721 .sp
722 Color of available packages that are older than installed packages.
723 The option is used during list operations.
724 .sp
725 Default: \fBdim,magenta\fP\&.
726 .UNINDENT
727 .INDENT 0.0
728 .TP
729 .B \fBcolor_list_available_reinstall\fP
730 \fI\%color\fP
731 .sp
732 Color of available packages that are identical to installed versions and are available for reinstalls.
733 The option is used during list operations.
734 .sp
735 Default: \fBbold,green\fP\&.
736 .UNINDENT
737 .INDENT 0.0
738 .TP
739 .B \fBcolor_list_available_install\fP
740 \fI\%color\fP
741 .sp
742 Color of packages that are available for installation and none of their versions in installed.
743 The option is used during list operations.
744 .sp
745 Default: \fBbold,cyan\fP\&.
746 .UNINDENT
747 .INDENT 0.0
748 .TP
749 .B \fBcolor_update_installed\fP
750 \fI\%color\fP
751 .sp
752 Color of removed packages.
753 This option is used during displaying transactions.
754 .sp
755 Default: \fBdim,red\fP\&.
756 .UNINDENT
757 .INDENT 0.0
758 .TP
759 .B \fBcolor_update_label\fP
760 \fI\%color\fP
761 .sp
762 Color of local packages that are installed from the @commandline repository.
763 This option is used during displaying transactions.
764 .sp
765 Default: \fBdim,green\fP\&.
766 .UNINDENT
767 .INDENT 0.0
768 .TP
769 .B \fBcolor_update_remote\fP
770 \fI\%color\fP
771 .sp
772 Color of packages that are installed/upgraded/downgraded from remote repositories.
773 This option is used during displaying transactions.
774 .sp
775 Default: \fBbold,green\fP\&.
776 .UNINDENT
777 .INDENT 0.0
778 .TP
779 .B \fBcolor_search_match\fP
780 \fI\%color\fP
781 .sp
782 Color of patterns matched in search output.
783 .sp
784 Default: \fBbold,magenta\fP\&.
785 .UNINDENT
786 .SH REPO OPTIONS
787 .INDENT 0.0
788 .TP
789 .B \fBbaseurl\fP
790 \fI\%list\fP
791 .sp
792 List of URLs for the repository.
793 .sp
794 Default [].
795 .sp
796 URLs are tried in the listed order (equivalent to yum’s “failovermethod=priority” behaviour).
797 .UNINDENT
798 .INDENT 0.0
799 .TP
800 .B \fBcost\fP
801 \fI\%integer\fP
802 .sp
803 The relative cost of accessing this repository, defaulting to 1000. This
804 value is compared when the priorities of two repositories are the same. The
805 repository with the lowest cost is picked. It is useful to make the library
806 prefer on\-disk repositories to remote ones.
807 .UNINDENT
808 .INDENT 0.0
809 .TP
810 .B \fBenabled\fP
811 \fI\%boolean\fP
812 .sp
813 Include this repository as a package source.
814 .sp
815 Default: \fBTrue\fP\&.
816 .UNINDENT
817 .INDENT 0.0
818 .TP
819 .B \fBgpgkey\fP
820 \fI\%list\fP
821 .sp
822 URLs of a OpenPGP key files that can be used for signing metadata and packages
823 of this repository. If a file can not be verified using
824 the already imported keys, import of keys from this option is attempted and
825 the keys are then used for verification.
826 .sp
827 Default: \fB[]\fP
828 .UNINDENT
829 .INDENT 0.0
830 .TP
831 .B \fBmetalink\fP
832 \fI\%string\fP
833 .sp
834 URL of a metalink for the repository.
835 .sp
836 Default: \fBNone\fP\&.
837 .UNINDENT
838 .INDENT 0.0
839 .TP
840 .B \fBmirrorlist\fP
841 \fI\%string\fP
842 .sp
843 URL of a mirrorlist for the repository.
844 .sp
845 Default: \fBNone\fP\&.
846 .UNINDENT
847 .INDENT 0.0
848 .TP
849 .B \fBname\fP
850 \fI\%string\fP
851 .sp
852 A human\-readable name of the repository. Defaults to the ID of the repository.
853 .UNINDENT
854 .INDENT 0.0
855 .TP
856 .B \fBpriority\fP
857 \fI\%integer\fP
858 .sp
859 The priority value of this repository. If there is more than
860 one candidate package for a particular operation, the one from a repo with
861 the lowest priority value is picked, possibly despite being less convenient
862 otherwise (e.g. by being a lower version).
863 .sp
864 Default: 99
865 .UNINDENT
866 .INDENT 0.0
867 .TP
868 .B \fBtype\fP
869 \fI\%string\fP
870 .sp
871 Type of repository metadata. Supported values are: \fBrpm\-md\fP\&. Aliases for
872 \fBrpm\-md\fP: \fBrpm\fP, \fBrepomd\fP, \fBrpmmd\fP, \fByum\fP, \fBYUM\fP\&.
873 .sp
874 Default: empty.
875 .UNINDENT
876 .SH SOURCE AND DEBUGINFO REPOSITORY NAMES
877 .sp
878 For a given repository with an identifier in the form \(dq<ID>\-rpms\(dq, its corresponding source repository is expected to have an identifier in the form \(dq<ID>\-source\-rpms\(dq and debuginfo repository an identifier in the form \(dq<ID>\-debug\-rpms\(dq. Otherwise (if the repository identifier doesn\(aqt have the \(dq\-rpms\(dq suffix), the source repository is expected to have an identifier in the form \(dq<ID>\-source\(dq and debuginfo repository an identifier in the form \(dq<ID>\-debuginfo\(dq.
879 .sp
880 For example, for repository \(dqfedora\(dq, the source repository is \(dqfedora\-source\(dq and debuginfo repository is \(dqfedora\-debuginfo\(dq. For repository \(dqfedora\-rpms\(dq, the source repository is \(dqfedora\-source\-rpms\(dq and debuginfo repository is \(dqfedora\-debug\-rpms\(dq.
881 .SH REPO VARIABLES
882 .sp
883 Right side of every repo option can be enriched by the following variables:
884 .sp
885 \fB$arch\fP
886 .INDENT 0.0
887 .INDENT 3.5
888 Refers to the system’s CPU architecture e.g, aarch64, i586, i686 and x86_64.
889 .UNINDENT
890 .UNINDENT
891 .sp
892 \fB$basearch\fP
893 .INDENT 0.0
894 .INDENT 3.5
895 Refers to the base architecture of the system. For example, i686 and i586 machines
896 both have a base architecture of i386, and AMD64 and Intel64 machines have a base architecture of x86_64.
897 .UNINDENT
898 .UNINDENT
899 .sp
900 \fB$releasever\fP
901 .INDENT 0.0
902 .INDENT 3.5
903 Refers to the release version of operating system which DNF5 derives from information available in RPMDB.
904 .UNINDENT
905 .UNINDENT
906 .sp
907 In addition to these hard coded variables, user\-defined ones can also be used.
908 They can be defined either via \fI\%variable files\fP, or by using special environmental variables.
909 The names of these variables must be prefixed with DNF_VAR_ and they can only consist of alphanumeric characters
910 and underscores:
911 .INDENT 0.0
912 .INDENT 3.5
913 .sp
914 .EX
915 $ DNF_VAR_MY_VARIABLE=value
916 .EE
917 .UNINDENT
918 .UNINDENT
919 .sp
920 To use such variable in your repository configuration remove the prefix. E.g.:
921 .INDENT 0.0
922 .INDENT 3.5
923 .sp
924 .EX
925 [myrepo]
926 baseurl=https://example.site/pub/fedora/$MY_VARIABLE/releases/$releasever
927 .EE
928 .UNINDENT
929 .UNINDENT
930 .sp
931 Note that it is not possible to override the \fBarch\fP and \fBbasearch\fP variables using either variable files or
932 environmental variables.
933 .sp
934 Although users are encouraged to use named variables, the numbered environmental variables
935 \fBDNF0\fP \- \fBDNF9\fP are still supported:
936 .INDENT 0.0
937 .INDENT 3.5
938 .sp
939 .EX
940 $ DNF1=value
941
942 [myrepo]
943 baseurl=https://example.site/pub/fedora/$DNF1/releases/$releasever
944 .EE
945 .UNINDENT
946 .UNINDENT
947 .SH OPTIONS FOR BOTH [MAIN] AND REPO
948 .sp
949 Some options can be applied in either the main section, per repository, or in a
950 combination. The value provided in the main section is used for all repositories
951 as the default value, which repositories can then override in their
952 configuration.
953 .INDENT 0.0
954 .TP
955 .B \fBbandwidth\fP
956 \fI\%storage size\fP
957 .sp
958 Total bandwidth available for downloading.
959 Meaningful when used with the \fI\%throttle option\fP\&.
960 .sp
961 Default: \fB0\fP\&.
962 .UNINDENT
963 .INDENT 0.0
964 .TP
965 .B \fBbuild_cache\fP
966 \fI\%boolean\fP
967 .sp
968 If enabled, DNF5 will save libsolv cache generated from downloaded metadata
969 to cachedir. These solv files are loaded during subsequent runs which
970 significantly speeds up DNF5.
971 .sp
972 Default: \fBTrue\fP\&.
973 .UNINDENT
974 .INDENT 0.0
975 .TP
976 .B \fBcountme\fP
977 \fI\%boolean\fP
978 .sp
979 When enabled, one (and only one) HTTP GET request for the metalink file
980 will be selected at random every week to carry a special URL flag.
981 .sp
982 This flag allows the repository provider to estimate the number of systems
983 consuming the repository, by counting such requests over a week\(aqs time.
984 This method is more accurate than just counting unique IP addresses (which
985 is subject to both overcounting and undercounting due to short DHCP leases
986 and NAT, respectively).
987 .sp
988 This is \fInot\fP an out\-of\-band HTTP request made for this purpose alone.
989 Only requests initiated by DNF during normal operation, such as to check
990 for metadata updates, can get this flag.
991 .sp
992 The flag is a simple \(dqcountme=N\(dq parameter appended to the metalink URL
993 where N is an integer representing the age \(dqbucket\(dq this system belongs to.
994 Four buckets are defined, based on how many full weeks have passed since
995 the installation of a system:
996 .TS
997 box center;
998 l|l.
999 T{
1000 bucket
1001 T} T{
1002 system age
1003 T}
1004 _
1005 T{
1006 1
1007 T} T{
1008 first week
1009 T}
1010 _
1011 T{
1012 2
1013 T} T{
1014 first month (2 \- 4 weeks)
1015 T}
1016 _
1017 T{
1018 3
1019 T} T{
1020 first 6 months (5 \- 24 weeks)
1021 T}
1022 _
1023 T{
1024 4
1025 T} T{
1026 more than 6 months (> 24 weeks)
1027 T}
1028 .TE
1029 .sp
1030 This number is meant to help distinguish short\-lived (throwaway) machines
1031 from long\-term installs and get a better picture of how systems are used
1032 over time.
1033 .sp
1034 To determine a system\(aqs installation time (\(dqepoch\(dq), the \fBmachine\-id(5)\fP
1035 file\(aqs modification time is used as the single source of truth. This file
1036 is semantically tied to the system\(aqs lifetime as it\(aqs typically populated
1037 at installation time or during the first boot by an installer tool or init
1038 system (such as \fBsystemd(1)\fP), respectively, and remains unchanged.
1039 .sp
1040 If the file is empty or missing (such as in containers), the time of the
1041 very first request made using the expanded metalink URL (i.e. with any
1042 repository variables such as \fB$releasever\fP substituted) that carried the
1043 flag is declared as the epoch.
1044 .sp
1045 If no metalink URL is defined for this repository but a mirrorlist URL is,
1046 the latter is used for this purpose instead.
1047 .sp
1048 Default: \fBFalse\fP\&.
1049 .UNINDENT
1050 .INDENT 0.0
1051 .TP
1052 .B \fBdisable_excludes\fP
1053 \fI\%list\fP
1054 .sp
1055 Used to disable package, group and environment filtering. It can include a list of repository IDs (globs allowed) for which repository\-specific package excludes are ignored. If it contains the special value \fBmain\fP, excludes from the main configuration files are bypassed. If it contains the special value \fB*\fP, no excludes filtering is applied at all.
1056 .UNINDENT
1057 .INDENT 0.0
1058 .TP
1059 .B \fBenablegroups\fP
1060 \fI\%boolean\fP
1061 .sp
1062 If enabled, DNF5 will allow the use of package groups.
1063 .sp
1064 Default: \fBTrue\fP\&.
1065 .UNINDENT
1066 .INDENT 0.0
1067 .TP
1068 .B \fBexcludepkgs\fP
1069 \fI\%list\fP
1070 .sp
1071 Exclude packages of this repository, specified by a name or a glob and
1072 separated by a comma, from all operations.
1073 .sp
1074 Can be disabled using \fBdisable_excludes\fP config option.
1075 .sp
1076 Default: \fB[]\fP\&.
1077 .UNINDENT
1078 .INDENT 0.0
1079 .TP
1080 .B \fBfastestmirror\fP
1081 \fI\%boolean\fP
1082 .sp
1083 If enabled, TCP socket latency is used to find the closest available mirror.
1084 A mirror is then selected at random with less than twice the lowest latency for load balancing purposes.
1085 This overrides the order provided by the mirrorlist/metalink file itself,
1086 and does not take into consideration mirrorlist parameters such as mirror bandwidth nor preferred mirrors for client IP addresses.
1087 .sp
1088 Default: \fBFalse\fP\&.
1089 .UNINDENT
1090 .INDENT 0.0
1091 .TP
1092 .B \fBpkg_gpgcheck\fP
1093 \fI\%boolean\fP
1094 .sp
1095 Whether to perform OpenPGP signature check on packages found in this repository.
1096 .sp
1097 The default is False.
1098 .sp
1099 Doesn\(aqt apply for packages passed directly as arguments, as they are not in any repository,
1100 see \fI\%localpkg_gpgcheck\fP\&.
1101 .sp
1102 Due to compatibility \fIgpgcheck\fP option is supported as well but \fIpkg_gpgcheck\fP is preferred.
1103 .UNINDENT
1104 .INDENT 0.0
1105 .TP
1106 .B \fBincludepkgs\fP
1107 \fI\%list\fP
1108 .sp
1109 Include packages of this repository, specified by a name or a glob and separated by a comma, in all operations.
1110 .sp
1111 Inverse of \fI\%excludepkgs\fP, DNF5 will exclude any package in the repository
1112 that doesn\(aqt match this list.
1113 .sp
1114 This works in conjunction with \fI\%excludepkgs\fP and doesn\(aqt override it,
1115 so if you \(aqexcludepkgs=*.i386\(aq and \(aqincludepkgs=python*\(aq then only packages starting with python
1116 that do not have an i386 arch will be seen by DNF5 in this repo.
1117 .sp
1118 Can be disabled using \fBdisable_excludes\fP config option.
1119 .sp
1120 Default: \fB[]\fP\&.
1121 .UNINDENT
1122 .INDENT 0.0
1123 .TP
1124 .B \fBip_resolve\fP
1125 \fI\%ip address\fP
1126 .sp
1127 Determines how DNF5 resolves host names. Set this to \fB4\fP, \fBIPv4\fP, \fB6\fP, \fBIPv6\fP
1128 to resolve to IPv4 or IPv6 addresses only.
1129 .sp
1130 Default: \fBwhatever\fP\&.
1131 .UNINDENT
1132 .INDENT 0.0
1133 .TP
1134 .B \fBlocalpkg_gpgcheck\fP
1135 \fI\%boolean\fP
1136 .sp
1137 If enabled, DNF5 will perform a OpenPGP signature check on local packages (packages in a file, not in a repository).
1138 .sp
1139 Default: \fBFalse\fP\&.
1140 .UNINDENT
1141 .INDENT 0.0
1142 .TP
1143 .B \fBmax_parallel_downloads\fP
1144 \fI\%integer\fP
1145 .sp
1146 Maximum number of simultaneous package downloads. Max is \fB20\fP\&.
1147 .sp
1148 Default: \fB3\fP\&.
1149 .UNINDENT
1150 .INDENT 0.0
1151 .TP
1152 .B \fBmetadata_expire\fP
1153 \fI\%time in seconds\fP
1154 .sp
1155 The period after which the remote repository is checked for metadata update and in the positive
1156 case the local metadata cache is updated.
1157 It can be \fB\-1\fP or \fBnever\fP to make the repo never considered expired.
1158 .sp
1159 Expire of metadata can be also triggered by change of timestamp of configuration files
1160 (\fBdnf.conf\fP, \fB<repo>.repo\fP).
1161 .sp
1162 See also \fI\%check_config_file_age\fP\&.
1163 .sp
1164 Default: \fB60 * 60 * 48\fP, 48 hours.
1165 .UNINDENT
1166 .INDENT 0.0
1167 .TP
1168 .B \fBminrate\fP
1169 \fI\%storage size\fP
1170 .sp
1171 Sets the low speed threshold in bytes per second.
1172 If the server is sending data at the same or slower speed than this value for at least
1173 \fI\%timeout option\fP seconds, DNF5 aborts the connection.
1174 .sp
1175 Default: \fB1000\fP\&.
1176 .UNINDENT
1177 .INDENT 0.0
1178 .TP
1179 .B \fBpassword\fP
1180 \fI\%string\fP
1181 .sp
1182 The password used to connect to a repository with basic HTTP authentication.
1183 .sp
1184 Default: empty.
1185 .UNINDENT
1186 .INDENT 0.0
1187 .TP
1188 .B \fBproxy\fP
1189 \fI\%string\fP
1190 .sp
1191 URL of a proxy server to connect through.
1192 .sp
1193 Set to an empty string in the repository configuration to disable proxy
1194 setting inherited from the main section. The expected format of this option is
1195 \fB<scheme>://<ip\-or\-hostname>[:port]\fP\&.
1196 (For backward compatibility, \(aq_none_\(aq can be used instead of the empty string.)
1197 .sp
1198 Default: empty.
1199 .sp
1200 \fBNOTE:\fP
1201 .INDENT 7.0
1202 .INDENT 3.5
1203 The curl environment variables (such as \fBhttp_proxy\fP) are effective if this option is unset
1204 (or \(aq_none_\(aq is set in the repository configuration). See the \fBcurl\fP man page for details.
1205 .UNINDENT
1206 .UNINDENT
1207 .UNINDENT
1208 .INDENT 0.0
1209 .TP
1210 .B \fBproxy_username\fP
1211 \fI\%string\fP
1212 .sp
1213 The username to use for connecting to the proxy server.
1214 .sp
1215 Default: empty.
1216 .UNINDENT
1217 .INDENT 0.0
1218 .TP
1219 .B \fBproxy_password\fP
1220 \fI\%string\fP
1221 .sp
1222 The password to use for connecting to the proxy server.
1223 .sp
1224 Default: empty.
1225 .UNINDENT
1226 .INDENT 0.0
1227 .TP
1228 .B \fBproxy_auth_method\fP
1229 \fI\%string\fP
1230 .sp
1231 The authentication method used by the proxy server. Valid values are
1232 .TS
1233 box center;
1234 l|l.
1235 T{
1236 method
1237 T} T{
1238 meaning
1239 T}
1240 _
1241 T{
1242 \fBbasic\fP
1243 T} T{
1244 HTTP Basic authentication
1245 T}
1246 _
1247 T{
1248 \fBdigest\fP
1249 T} T{
1250 HTTP Digest authentication
1251 T}
1252 _
1253 T{
1254 \fBnegotiate\fP
1255 T} T{
1256 HTTP Negotiate (SPNEGO) authentication
1257 T}
1258 _
1259 T{
1260 \fBntlm\fP
1261 T} T{
1262 HTTP NTLM authentication
1263 T}
1264 _
1265 T{
1266 \fBdigest_ie\fP
1267 T} T{
1268 HTTP Digest authentication with an IE flavor
1269 T}
1270 _
1271 T{
1272 \fBntlm_wb\fP
1273 T} T{
1274 NTLM delegating to winbind helper
1275 T}
1276 _
1277 T{
1278 \fBnone\fP
1279 T} T{
1280 None auth method
1281 T}
1282 _
1283 T{
1284 \fBany\fP
1285 T} T{
1286 All suitable methods
1287 T}
1288 .TE
1289 .sp
1290 Default: \fBany\fP\&.
1291 .UNINDENT
1292 .INDENT 0.0
1293 .TP
1294 .B \fBproxy_sslcacert\fP
1295 \fI\%string\fP
1296 .sp
1297 Path to the file containing the certificate authorities to verify proxy SSL certificates.
1298 .sp
1299 Default: empty, uses system default.
1300 .UNINDENT
1301 .INDENT 0.0
1302 .TP
1303 .B \fBproxy_sslclientcert\fP
1304 \fI\%string\fP
1305 .sp
1306 Path to the SSL client certificate used to connect to proxy server.
1307 .sp
1308 Default: empty.
1309 .UNINDENT
1310 .INDENT 0.0
1311 .TP
1312 .B \fBproxy_sslclientkey\fP
1313 \fI\%string\fP
1314 .sp
1315 Path to the SSL client key used to connect to proxy server.
1316 .sp
1317 Default: empty.
1318 .UNINDENT
1319 .INDENT 0.0
1320 .TP
1321 .B \fBproxy_sslverify\fP
1322 \fI\%boolean\fP
1323 .sp
1324 If enabled, proxy SSL certificates are verified. If the client can not be authenticated, connecting fails and the
1325 repository is not used any further. If \fBFalse\fP, SSL connections can be used, but certificates are not verified.
1326 .sp
1327 Default: \fBTrue\fP\&.
1328 .UNINDENT
1329 .INDENT 0.0
1330 .TP
1331 .B \fBrepo_gpgcheck\fP
1332 \fI\%boolean\fP
1333 .sp
1334 If enabled, DNF5 will perform OpenPGP signature check on this repository\(aqs metadata.
1335 .sp
1336 \fBNOTE:\fP
1337 .INDENT 7.0
1338 .INDENT 3.5
1339 OpenPGP keys for this check are stored separately from OpenPGP keys used in package signature
1340 verification. Furthermore, they are also stored separately for each repository.
1341 .sp
1342 This means that DNF5 may ask to import the same key multiple times. For example, when a key was
1343 already imported for package signature verification and this option is turned on, it may be needed
1344 to import it again for the repository.
1345 .UNINDENT
1346 .UNINDENT
1347 .sp
1348 Default: \fBFalse\fP\&.
1349 .UNINDENT
1350 .INDENT 0.0
1351 .TP
1352 .B \fBskip_if_unavailable\fP
1353 \fI\%boolean\fP
1354 .sp
1355 If enabled, DNF5 will continue running and disable the repository that couldn\(aqt be synchronized
1356 for any reason. This option doesn\(aqt affect skipping of unavailable packages after dependency
1357 resolution. To check inaccessibility of repository use it in combination with
1358 refresh command line option\&.
1359 .sp
1360 Default: \fBFalse\fP\&.
1361 .sp
1362 \fBNOTE:\fP
1363 .INDENT 7.0
1364 .INDENT 3.5
1365 this option in particular can be set in your configuration file
1366 by your distribution\&.
1367 .UNINDENT
1368 .UNINDENT
1369 .UNINDENT
1370 .INDENT 0.0
1371 .TP
1372 .B \fBsslcacert\fP
1373 \fI\%string\fP
1374 .sp
1375 Path to the file containing the certificate authorities to verify SSL certificates.
1376 .sp
1377 Default: empty, uses system default.
1378 .UNINDENT
1379 .INDENT 0.0
1380 .TP
1381 .B \fBsslclientcert\fP
1382 \fI\%string\fP
1383 .sp
1384 Path to the SSL client certificate used to connect to remote sites.
1385 .sp
1386 Default: empty.
1387 .UNINDENT
1388 .INDENT 0.0
1389 .TP
1390 .B \fBsslclientkey\fP
1391 \fI\%string\fP
1392 .sp
1393 Path to the SSL client key used to connect to remote sites.
1394 .sp
1395 Default: empty.
1396 .UNINDENT
1397 .INDENT 0.0
1398 .TP
1399 .B \fBsslverify\fP
1400 \fI\%boolean\fP
1401 .sp
1402 If enabled, remote SSL certificates are verified. If the client can not be authenticated,
1403 connecting fails and the repository is not used any further.
1404 If disabled, SSL connections can be used, but certificates are not verified.
1405 .sp
1406 Default: \fBTrue\fP\&.
1407 .UNINDENT
1408 .INDENT 0.0
1409 .TP
1410 .B \fBthrottle\fP
1411 \fI\%storage size\fP
1412 .sp
1413 Limits the downloading speed. It might be an absolute value or a percentage, relative to the value of the
1414 \fI\%bandwidth option\fP option. \fB0\fP means no throttling.
1415 .sp
1416 Default: \fB0\fP\&.
1417 .UNINDENT
1418 .INDENT 0.0
1419 .TP
1420 .B \fBtimeout\fP
1421 \fI\%time in seconds\fP
1422 .sp
1423 Number of seconds to wait for a connection before timing out. Used in combination with
1424 \fI\%minrate option\fP option.
1425 .sp
1426 Default: \fB30\fP\&.
1427 .UNINDENT
1428 .INDENT 0.0
1429 .TP
1430 .B \fBusername\fP
1431 \fI\%string\fP
1432 .sp
1433 The username to use for connecting to repo with basic HTTP authentication.
1434 .sp
1435 Default: empty.
1436 .UNINDENT
1437 .INDENT 0.0
1438 .TP
1439 .B \fBuser_agent\fP
1440 \fI\%string\fP
1441 .sp
1442 The User\-Agent string to include in HTTP requests sent by DNF5.
1443 .sp
1444 Default:
1445 .INDENT 7.0
1446 .INDENT 3.5
1447 .sp
1448 .EX
1449 libdnf (NAME VERSION_ID; VARIANT_ID; OS.BASEARCH)
1450 .EE
1451 .UNINDENT
1452 .UNINDENT
1453 .sp
1454 \fBNOTE:\fP
1455 .INDENT 7.0
1456 .INDENT 3.5
1457 \fBNAME\fP, \fBVERSION_ID\fP and \fBVARIANT_ID\fP are OS identifiers read from the
1458 \fBos\-release(5)\fP file, and \fBOS\fP and \fBBASEARCH\fP are the canonical OS
1459 name and base architecture, respectively.
1460 Example:
1461 .INDENT 0.0
1462 .INDENT 3.5
1463 .sp
1464 .EX
1465 libdnf (Fedora 39; server; Linux.x86_64)
1466 .EE
1467 .UNINDENT
1468 .UNINDENT
1469 .UNINDENT
1470 .UNINDENT
1471 .UNINDENT
1472 .SH TYPES OF OPTIONS
1473 .INDENT 0.0
1474 .TP
1475 .B \fBboolean\fP
1476 Data type with only two possible values.
1477 .sp
1478 One of following options can be used: \fB1\fP, \fB0\fP, \fBTrue\fP, \fBFalse\fP, \fByes\fP, \fBno\fP\&.
1479 .UNINDENT
1480 .INDENT 0.0
1481 .TP
1482 .B \fBcolor\fP
1483 String describing color and modifiers separated with a comma, for example \fBred,bold\fP\&.
1484 .INDENT 7.0
1485 .IP \(bu 2
1486 Colors: \fBblack\fP, \fBblue\fP, \fBcyan\fP, \fBgreen\fP, \fBmagenta\fP, \fBred\fP, \fBwhite\fP, \fByellow\fP\&.
1487 .IP \(bu 2
1488 Modifiers: \fBbold\fP, \fBblink\fP, \fBdim\fP, \fBnormal\fP, \fBreverse\fP, \fBunderline\fP\&.
1489 .UNINDENT
1490 .UNINDENT
1491 .INDENT 0.0
1492 .TP
1493 .B \fBinteger\fP
1494 Whole number that can be written without a fractional component.
1495 .UNINDENT
1496 .INDENT 0.0
1497 .TP
1498 .B \fBip address type\fP
1499 String describing ip address types.
1500 .sp
1501 One of the following options can be used: \fB4\fP, \fBIPv4\fP, \fB6\fP, \fBIPv6\fP\&.
1502 .UNINDENT
1503 .INDENT 0.0
1504 .TP
1505 .B \fBlist\fP
1506 String representing one or more strings separated by space or comma characters.
1507 .UNINDENT
1508 .INDENT 0.0
1509 .TP
1510 .B \fBstorage size\fP
1511 String representing storage sizes formed by an integer and a unit.
1512 .sp
1513 Valid units are \fBk\fP, \fBM\fP, \fBG\fP\&.
1514 .UNINDENT
1515 .INDENT 0.0
1516 .TP
1517 .B \fBstring\fP
1518 It is a sequence of symbols or digits without any whitespace character.
1519 .UNINDENT
1520 .INDENT 0.0
1521 .TP
1522 .B \fBtime in seconds\fP
1523 String representing time units in seconds. Can be set to \fB\-1\fP or \fBnever\fP\&.
1524 .UNINDENT
1525 .SH DROP-IN CONFIGURATION DIRECTORIES
1526 .sp
1527 \fIDNF5\fP loads configuration options that are defined in the \fI\%main
1528 configuration file\fP, \fI\%user configuration
1529 files\fP and \fI\%distribution configuration
1530 files\fP\&.
1531 .sp
1532 The configuration files are processed following this order:
1533 .INDENT 0.0
1534 .IP 1. 3
1535 Configuration files are alphabetically sorted in a list of names from the
1536 distribution configuration directory\&. If
1537 a file with the same name is present in both directories, only the file from
1538 the user configuration directory is added to the list. The
1539 distribution file is then masked by the user file.
1540 .IP 2. 3
1541 Options are retrieved in order from the list The configuration from the next
1542 file overrides the previous one. The last option wins.
1543 .UNINDENT
1544 .SS Example of configuration files
1545 .sp
1546 User configuration files:
1547 .INDENT 0.0
1548 .IP \(bu 2
1549 /etc/dnf/dnf.conf
1550 .IP \(bu 2
1551 /etc/dnf/libdnf5.conf.d/20\-user\-settings.conf
1552 .IP \(bu 2
1553 /etc/dnf/libdnf5.conf.d/60\-something.conf
1554 .IP \(bu 2
1555 /etc/dnf/libdnf5.conf.d/80\-user\-settings.conf
1556 .UNINDENT
1557 .sp
1558 Distribution configuration files:
1559 .INDENT 0.0
1560 .IP \(bu 2
1561 /usr/share/dnf5/libdnf.conf.d/50\-something.conf
1562 .IP \(bu 2
1563 /usr/share/dnf5/libdnf.conf.d/60\-something.conf
1564 .IP \(bu 2
1565 /usr/share/dnf5/libdnf.conf.d/90\-something.conf
1566 .UNINDENT
1567 .sp
1568 Resulting file loading order by default
1569 (/usr/share/dnf5/libdnf.conf.d/60\-something.conf is skipped, masked by
1570 the user file /etc/dnf/libdnf5.conf.d/60\-something.conf):
1571 .INDENT 0.0
1572 .IP 1. 3
1573 /etc/dnf/libdnf5.conf.d/20\-user\-settings.conf
1574 .IP 2. 3
1575 /usr/share/dnf5/libdnf.conf.d/50\-something.conf
1576 .IP 3. 3
1577 /etc/dnf/libdnf5.conf.d/60\-something.conf
1578 .IP 4. 3
1579 /etc/dnf/libdnf5.conf.d/80\-user\-settings.conf
1580 .IP 5. 3
1581 /usr/share/dnf5/libdnf.conf.d/90\-something.conf
1582 .IP 6. 3
1583 /etc/dnf/dnf.conf
1584 .UNINDENT
1585 .SS Files and directories
1586 .INDENT 0.0
1587 .TP
1588 .B \fBUser Configuration Directory\fP
1589 /etc/dnf/libdnf5.conf.d/
1590 .UNINDENT
1591 .INDENT 0.0
1592 .TP
1593 .B \fBUser Configuration Files\fP
1594 /etc/dnf/libdnf5.conf.d/20\-user\-settings.conf
1595 .UNINDENT
1596 .INDENT 0.0
1597 .TP
1598 .B \fBDistribution Configuration Directory\fP
1599 /usr/share/dnf5/libdnf.conf.d/
1600 .UNINDENT
1601 .INDENT 0.0
1602 .TP
1603 .B \fBDistribution Configuration Files\fP
1604 /usr/share/dnf5/libdnf.conf.d/50\-something.conf
1605 .UNINDENT
1606 .SH DROP-IN REPO DIRECTORIES
1607 .sp
1608 After the repository configurations are loaded other repo configurations can be overloaded from the directories
1609 \fI\%user repos override directory\fP
1610 and \fI\%distribution repos override directory\fP\&.
1611 .sp
1612 The format of the files inside the directories is the same as the format of the repository configuration files.
1613 The options in the overridden files can modify existing repos but cannot create new repositories.
1614 .sp
1615 Override files support globs in the repository ID in order to support bulk modifications of repository parameters.
1616 .sp
1617 The repository overrides are processed following this order:
1618 .INDENT 0.0
1619 .IP 1. 3
1620 Files from \fB/usr/share/dnf5/repos.override.d/\fP and \fB/etc/dnf5/repos.override.d/\fP are loaded in an alphabetically
1621 sorted list. In case files have the same name, the file from \fB/etc/dnf5/repos.override.d/\fP is used.
1622 This implies the list has only unique filenames. This also implies that the repository configuration files can be
1623 simply masked by creating a file with the same name in the \fB/etc\fP override directory.
1624 .IP 2. 3
1625 The options from the files are applied in the order they are loaded. The last option wins.
1626 .UNINDENT
1627 .sp
1628 \fBNOTE:\fP
1629 .INDENT 0.0
1630 .INDENT 3.5
1631 See also the documentation for \fI\%Config\-manager Command\fP to see where the overrides are used.
1632 .UNINDENT
1633 .UNINDENT
1634 .SS Example configuration
1635 .INDENT 0.0
1636 .INDENT 3.5
1637 .sp
1638 .EX
1639 # Enable \(gaskip_if_unavailable\(ga for all repositories
1640 [*]
1641 skip_if_unavailable = true
1642
1643 # And then disable \(gaskip_if_unavailable\(ga for repositories with id prefix \(dqfedora\(dq
1644 [fedora*]
1645 skip_if_unavailable = false
1646 .EE
1647 .UNINDENT
1648 .UNINDENT
1649 .SS Example of configuration files
1650 .sp
1651 This example shows the order in which override files are processed.
1652 .sp
1653 Files with user repos overrides:
1654 .INDENT 0.0
1655 .IP \(bu 2
1656 /etc/dnf/repos.overide.d/20\-user\-overrides.repo
1657 .IP \(bu 2
1658 /etc/dnf/repos.overide.d/60\-something2.repo
1659 .IP \(bu 2
1660 /etc/dnf/repos.overide.d/80\-user\-overrides.repo
1661 .IP \(bu 2
1662 /etc/dnf/repos.overide.d/99\-config\-manager.repo
1663 .UNINDENT
1664 .sp
1665 Files with distribution repos overrides:
1666 .INDENT 0.0
1667 .IP \(bu 2
1668 /usr/share/dnf5/repos.overide.d/50\-something2.repo
1669 .IP \(bu 2
1670 /usr/share/dnf5/repos.overide.d/60\-something2.repo
1671 .IP \(bu 2
1672 /usr/share/dnf5/repos.overide.d/90\-something2.repo
1673 .UNINDENT
1674 .sp
1675 Resulting file processing order:
1676 .INDENT 0.0
1677 .IP 1. 3
1678 /etc/dnf/repos.overide.d/20\-user\-overrides.repo
1679 .IP 2. 3
1680 /usr/share/dnf5/repos.overide.d/50\-something2.repo
1681 .IP 3. 3
1682 /etc/dnf/repos.overide.d/60\-something2.repo
1683 .IP 4. 3
1684 /etc/dnf/repos.overide.d/80\-user\-overrides.repo
1685 .IP 5. 3
1686 /usr/share/dnf5/repos.overide.d/90\-something2.repo
1687 .IP 6. 3
1688 /etc/dnf/repos.overide.d/99\-config\-manager.repo
1689 .UNINDENT
1690 .SS Files and directories
1691 .INDENT 0.0
1692 .TP
1693 .B \fBUser Repos Override Directory\fP
1694 /etc/dnf/repos.override.d/
1695 .UNINDENT
1696 .INDENT 0.0
1697 .TP
1698 .B \fBUser Repos Override Files\fP
1699 /etc/dnf/repos.override.d/20\-user\-overrides.repo
1700 .UNINDENT
1701 .INDENT 0.0
1702 .TP
1703 .B \fBDistribution Repos Override Directory\fP
1704 /usr/share/dnf5/repos.override.d/
1705 .UNINDENT
1706 .INDENT 0.0
1707 .TP
1708 .B \fBDistribution Repos Override Files\fP
1709 /usr/share/dnf5/repos.override.d/50\-something2.repo
1710 .UNINDENT
1711 .SH FILES
1712 .INDENT 0.0
1713 .TP
1714 .B \fBMain Configuration File\fP
1715 /etc/dnf/dnf.conf
1716 .UNINDENT
1717 .INDENT 0.0
1718 .TP
1719 .B \fBCache Files\fP
1720 /var/cache/libdnf5
1721 .UNINDENT
1722 .INDENT 0.0
1723 .TP
1724 .B \fBRepository Files\fP
1725 /etc/yum.repos.d/
1726 .UNINDENT
1727 .INDENT 0.0
1728 .TP
1729 .B \fBVariables\fP
1730 Any property named file in \fB/etc/dnf/vars\fP is turned into a variable named after the filename
1731 (or overrides any of the above variables but those set from commandline).
1732 Filenames may contain only alphanumeric characters and underscores and be in lowercase.
1733 Variables are also read from \fB/etc/yum/vars\fP for YUM compatibility reasons.
1734 .UNINDENT
1735 .SH DIRECTORIES
1736 .SS Repository Directories
1737 .sp
1738 Directories are listed in the order in which they are processed.
1739 .sp
1740 \fBNOTE:\fP
1741 .INDENT 0.0
1742 .INDENT 3.5
1743 Unlike overrides that modify an existing repository configuration,
1744 the configuration in these directories defines new repositories.
1745 It is not possible to define repositories with the same ID.
1746 If multiple repositories with the same ID are defined only the first configuration
1747 will be loaded. Loading the next one will log an error.
1748 .UNINDENT
1749 .UNINDENT
1750 .INDENT 0.0
1751 .TP
1752 .B \fBYUM Repositories Directory\fP
1753 /etc/yum.repos.d/
1754 .UNINDENT
1755 .INDENT 0.0
1756 .TP
1757 .B \fBDistribution Repositories Directory in /etc\fP
1758 /etc/distro.repos.d/
1759 .TP
1760 .B \fBDistribution Repositories Directory in /usr\fP
1761 /usr/share/dnf5/repos.d/
1762 .UNINDENT
1763 .SS Variables Directories
1764 .INDENT 0.0
1765 .TP
1766 .B \fBVariables Directory\fP
1767 /etc/dnf/vars/
1768 .UNINDENT
1769 .INDENT 0.0
1770 .TP
1771 .B \fBDistribution Variables Directory\fP
1772 /usr/share/dnf5/vars.d/
1773 .UNINDENT
1774 .SH SEE ALSO
1775 .INDENT 0.0
1776 .IP \(bu 2
1777 \fBdnf5(8)\fP, \fI\%DNF5 Command Reference\fP
1778 .IP \(bu 2
1779 \fBdnf5.conf\-todo(5)\fP, \fI\%Options that are documented/implemented in DNF but not in DNF5\fP
1780 .IP \(bu 2
1781 \fBdnf5.conf\-deprecated(5)\fP, \fI\%Config Options that are deprecated in DNF5\fP
1782 .UNINDENT
1783 .SH AUTHOR
1784 See AUTHORS.md in dnf5 source distribution.
1785 .SH COPYRIGHT
1786 Contributors to the dnf5 project.
1787 .\" Generated by docutils manpage writer.
1788 .