DNF5.CONF(5) dnf5 DNF5.CONF(5) (NAME) dnf5.conf - DNF5 (DESCRIPTION) DNF5 /etc/dnf/dnf.conf . INI name=value . : (main) (repository). (main) . ( ) . (repo ID) . - _ . :. baseurl metalink mirrorlist . ([MAIN] OPTIONS) allow_downgrade boolean DNF5 . : True. allow_vendor_change boolean DNF5 RPM . <#dnf5-vendor-change-policy- label> . : True. : downgrade distro-sync . assumeno boolean DNF5 No . : False. assumeyes boolean DNF5 Yes ( defaultyes ). : False. best boolean True . False . : True. : . (drop-in) . cachedir string DNF5 () . . DNF5 . : ~/.cache/libdnf5. (superuser) system_cachedir . cacheonly string all metadata none . all DNF5 . metadata DNF5 () . : none. : API: . pre_config . . check_config_file_age boolean DNF5 ( dnf.conf foo.repo) . : True. : . : metadata_expire. clean_requirements_on_remove boolean DNF5 dnf remove . clean_requirements_on_remove DNF5 . installonlypkgs . : True. debugdir string libsolv debug_solver . : ./debugdata. debug_solver boolean libsolv . debugdir . : False. defaultyes boolean Yes . assumeyes . : False. destdir string . : /packages exclude_from_weak list (recommends supplements). (glob) . : []. exclude_from_weak_autodetect boolean DNF5 (recommends supplements) . dnf ( ). : true. excludeenvs list ( ) . disable_excludes . : []. excludegroups list ( ) . disable_excludes . : []. gpgcheck gpgcheck pkg_gpgcheck . gpgcheck gpgcheck_policy . : pkg_gpgcheck. gpgcheck_policy legacy full all gpgcheck . legacy gpgcheck=1 pkg_gpgcheck=1 . DNF . full gpgcheck=1 pkg_gpgcheck=1 repo_gpgcheck=1 . all gpgcheck=1 pkg_gpgcheck=1 repo_gpgcheck=1 localpkg_gpgcheck=1 . pkg_gpgcheck repo_gpgcheck localpkg_gpgcheck . [main] gpgcheck . : legacy. group_package_types list : optional default mandatory conditional. DNF5 'group install ' 'install @' . : default, mandatory, conditional. ignorearch boolean RPM (CPU) . : False. installonlypkgs list (provides) . (kernel) . dnf autoremove ( clean_requirements_on_remove ). installonlypkgs DNF5 . installonly_limit . installonly_limit integer installonly . 1 . 2 . 0 installonly . : 3. installroot string . . --installroot . : /. install_weak_deps boolean ( Recommends Supplements) . : True. keepcache boolean . . : False. logdir string . : ~/.local/state. (superuser): /var/log. log_rotate integer log_rotate . log_rotate 0 . : 4. log_size storage size log_size . log_size 0 . . log_rotate . : 1M. module_platform_id string $name:$stream PLATFORM_ID /etc/os-release . . : . module_stream_switch boolean . : False. multilib_policy string multilib . best all . : best. obsoletes boolean DNF5 (obsoletes) . . . : --obsoletes : True. optional_metadata_types list : comps filelists other presto updateinfo all primary modules ( ) . DNF . : DNF . ( AppStream XML ). all DNF . : comps,updateinfo persistdir string DNF5 . : /var/lib/dnf. persistence string . --transient ( transient <#transient-option-label> ) transient . : o auto: bootc ( /usr ). o transient: . bootc . bootc /etc /var . . o persist: . : auto. pluginconfpath list libdnf5 . . : /etc/dnf/libdnf5-plugins. pluginpath list libdnf5 . . : /usr/lib64/libdnf5/plugins/ plugins boolean libdnf5 . : True. protected_packages list DNF5 . Obsoletes . glob: glob:/path/to/dir/*.conf . : dnf5,glob:/etc/dnf/protected.d/*.conf. : DNF5 . protect_running_kernel . protect_running_kernel boolean . : True. : YUM recent integer --recent repoquery <#repoquery-command-ref- label> info <#info-command-ref-label> list <#list- command-ref-label> . : 7 reposdir list . reposdir --installroot . : [/etc/yum.repos.d, /etc/distro.repos.d, /usr/share/dnf5/repos.d] skip_broken boolean DNF5 . : False. skip_system_repo_lock boolean ( RPM). . skip_system_repo_lock=true . skip_unavailable boolean DNF5 rpm . : False. system_cachedir string (superuser) cachedir . cachedir . : /var/cache/libdnf5. system_state_dir string . dnf5-system-state(7) <# systemstate-misc-ref-label> . : /usr/lib/sysimage/libdnf5. transaction_history_dir string . system_state_dir . tsflags list RPM . +-----------------------+----------------------------+ | tsflag | | | | RPM | +-----------------------+----------------------------+ |noscripts | RPMTRANS_FLAG_NOSCRIPTS | +-----------------------+----------------------------+ |test | RPMTRANS_FLAG_TEST | +-----------------------+----------------------------+ |notriggers | RPMTRANS_FLAG_NOTRIGGERS | +-----------------------+----------------------------+ |nodocs | RPMTRANS_FLAG_NODOCS | +-----------------------+----------------------------+ |justdb | RPMTRANS_FLAG_JUSTDB | +-----------------------+----------------------------+ |nocontexts | RPMTRANS_FLAG_NOCONTEXTS | +-----------------------+----------------------------+ |nocaps | RPMTRANS_FLAG_NOCAPS | +-----------------------+----------------------------+ |nocrypto | RPMTRANS_FLAG_NOFILEDIGEST | +-----------------------+----------------------------+ |deploops | RPMTRANS_FLAG_DEPLOOPS | +-----------------------+----------------------------+ |noplugins | RPMTRANS_FLAG_NOPLUGINS | +-----------------------+----------------------------+ nocrypto VS _RPMVSF_NOSIGNATURES _RPMVSF_NODIGESTS . test . OpenPGP ( ) rpm . noplugins rpm . : . use_host_config installroot. <#installroot-misc-ref-label> dnf5-installroot(7) . : False. usr_drift_protected_paths list /usr /etc/pam.d/*. (transient) DNF5 . persistence=transient bootc /usr DNF5 /usr . /etc /var () . " " . /etc .so /usr/lib64 . DNF5 (filelist) . glob: glob:/path/to/dir/*.conf . glob ( /etc/pam.d/*) . : glob:/etc/dnf/usr-drift-protected-paths.d/*.conf. varsdir list . . : /etc/dnf/vars. zchunk boolean zchunk ( ). : True. ([MAIN] OPTIONS - COLORS) color_list_available_upgrade color . . : bold,blue. color_list_available_downgrade color . . : dim,magenta. color_list_available_reinstall color . . : bold,green. color_list_available_install color . . : bold,cyan. color_update_installed color . . : dim,red. color_update_local color @commandline . . : dim,green. color_update_remote color . . : bold,green. color_search_match color . : bold,magenta. (REPO OPTIONS) baseurl list (URL) . : []. ( <> yum). cost integer . . . . enabled boolean . : True. gpgkey list OpenPGP . . : [] metalink string metalink . : None. mirrorlist string mirrorlist . : None. name string . (ID) . priority integer . ( ). : 99 type string . : rpm-md. rpm-md: rpm repomd rpmmd yum YUM. : . (SOURCE AND DEBUGINFO REPOSITORY NAMES) "-rpms" "-source-rpms" (debuginfo) "-debug-rpms" . ( "-rpms" ) "-source" debuginfo "-debuginfo" . "fedora" "fedora-source" debuginfo "fedora-debuginfo" . "fedora-rpms" "fedora-source-rpms" debuginfo "fedora-debug-rpms" . (REPO VARIABLES) : $arch (CPU) aarch64 i586 i686 x86_64. $basearch . i686 i586 i386 AMD64 Intel64 x86_64 . $releasever DNF5 RPMDB . . . DNF_VAR_ (underscore) : $ DNF_VAR_MY_VARIABLE=value . : [myrepo] baseurl=https://example.site/pub/fedora/$MY_VARIABLE/releases/$releasever arch basearch . DNF0 - DNF9 : $ DNF1=value [myrepo] baseurl=https://example.site/pub/fedora/$DNF1/releases/$releasever (OPTIONS FOR BOTH [MAIN] AND REPO) . . bandwidth storage size . . throttle . throttle bandwidth . : 0 ( ). build_cache boolean DNF5 libsolv cachedir . solv DNF5 . : True. countme boolean ( ) HTTP GET metalink URL . . IP ( DHCP NAT ). HTTP (not an out-of-band request) . DNF . "countme=N" metalink N ("bucket") . : +----------------------+----------------------------+ | (bucket) | | +----------------------+----------------------------+ |1 | | +----------------------+----------------------------+ |2 | ( - | | | ) | +----------------------+----------------------------+ |3 | | | | ( - | | | ) | +----------------------+----------------------------+ |4 | | | | (> | | | ) | +----------------------+----------------------------+ () . ("epoch") machine-id(5) . init ( systemd(1)) . ( ) metalink ( $releasever) epoch . metalink mirrorlist mirrorlist . : False. disable_excludes list . ( glob ) . main . * . enablegroups boolean DNF5 . : True. excludepkgs list glob . disable_excludes . : []. fastestmirror boolean TCP (mirror) . . mirrorlist/metalink mirrorlist IP . : False. pkg_gpgcheck boolean OpenPGP . False . localpkg_gpgcheck . includepkgs list glob . excludepkgs DNF5 . excludepkgs 'excludepkgs=*.i386' 'includepkgs=python*' python i386 DNF5 . disable_excludes . : []. ip_resolve ip address DNF5 . 4 IPv4 6 IPv6 IPv4 IPv6 . : whatever. localpkg_gpgcheck boolean DNF5 OpenPGP ( ) . : False. max_parallel_downloads integer . 20 . : 3. max_downloads_per_mirror integer . 20 . : 3. metadata_expire time in seconds . -1 never . (dnf.conf .repo) . check_config_file_age . : 60 * 60 * 48 . minrate storage size . timeout DNF5 . : 1000. password string HTTP. : . proxy string (URL) . . ://[:port] . ( '_none_' .) : . : curl ( http_proxy) ( '_none_' ) . curl . proxy_username string . : . proxy_password string . : . proxy_auth_method string . : +----------+----------------------------+ | | | +----------+----------------------------+ |basic | | | | | | | HTTP | +----------+----------------------------+ |digest | | | | Digest | | | HTTP | +----------+----------------------------+ |negotiate | | | | Negotiate | | | (SPNEGO) HTTP | +----------+----------------------------+ |ntlm | | | | NTLM | | | HTTP | +----------+----------------------------+ |digest_ie | | | | Digest | | | HTTP | | | IE | +----------+----------------------------+ |ntlm_wb | NTLM | | | | | | winbind | +----------+----------------------------+ |none | | | | | | | | +----------+----------------------------+ |any | | | | | | | | +----------+----------------------------+ : any. proxy_sslcacert string (CA) SSL . : . proxy_sslclientcert string SSL . : . proxy_sslclientkey string SSL . : . proxy_sslverify boolean SSL . . False SSL . : True. repo_gpgcheck boolean DNF5 OpenPGP . : OpenPGP OpenPGP . . DNF5 . . : False. skip_if_unavailable boolean DNF5 . . refresh <#refresh-option-label> . : False. : . . sslcacert string SSL. : . sslclientcert string SSL . : . sslclientkey string SSL . : . sslverify boolean SSL . . SSL . : True. throttle storage size . . ( 5M ) ( 60%). bandwidth . 0 . minrate . : 0. timeout time in seconds (timeout). minrate . : 30. username string HTTP. : . user_agent string User-Agent HTTP DNF5. : libdnf (NAME VERSION_ID; VARIANT_ID; OS.BASEARCH) : NAME VERSION_ID VARIANT_ID os-release(5) OS BASEARCH . : libdnf (Fedora 39; server; Linux.x86_64) (TYPES OF OPTIONS) boolean . : 1 0 True False yes no. color red,bold. o : black blue cyan green magenta red white yellow. o : bold blink dim normal reverse underline. integer . ip address type IP. : 4 IPv4 6 IPv6. list . '\' . : 'item1,item2\,with\,commas,item3\ with\ spaces item4' storage size . : k M G. string (whitespace). time in seconds . -1 never . (DROP-IN CONFIGURATION DIRECTORIES) DNF5 . : 1. . . (mask) . 2. . . ( ). (Example of configuration files) : o /etc/dnf/dnf.conf o /etc/dnf/libdnf5.conf.d/20-user-settings.conf o /etc/dnf/libdnf5.conf.d/60-something.conf o /etc/dnf/libdnf5.conf.d/80-user-settings.conf : o /usr/share/dnf5/libdnf.conf.d/50-something.conf o /usr/share/dnf5/libdnf.conf.d/60-something.conf o /usr/share/dnf5/libdnf.conf.d/90-something.conf ( /usr/share/dnf5/libdnf.conf.d/60-something.conf /etc/dnf/libdnf5.conf.d/60-something.conf ): 1. /etc/dnf/libdnf5.conf.d/20-user-settings.conf 2. /usr/share/dnf5/libdnf.conf.d/50-something.conf 3. /etc/dnf/libdnf5.conf.d/60-something.conf 4. /etc/dnf/libdnf5.conf.d/80-user-settings.conf 5. /usr/share/dnf5/libdnf.conf.d/90-something.conf 6. /etc/dnf/dnf.conf (Files and directories) (User Configuration Directory) /etc/dnf/libdnf5.conf.d/ (User Configuration Files) /etc/dnf/libdnf5.conf.d/20-user-settings.conf (Distribution Configuration Directory) /usr/share/dnf5/libdnf.conf.d/ (Distribution Configuration Files) /usr/share/dnf5/libdnf.conf.d/50-something.conf (DROP-IN REPO DIRECTORIES) . . . glob . : 1. /usr/share/dnf5/repos.override.d/ /etc/dnf/repos.override.d/ . /etc/dnf/repos.override.d/ . . /etc (mask ). 2. . ( ). : Config-manager <# config-manager-plugin-ref-label> . (Example configuration) # `skip_if_unavailable` [*] skip_if_unavailable = true # `skip_if_unavailable` "fedora" [fedora*] skip_if_unavailable = false (Example of configuration files) . : o /etc/dnf/repos.override.d/20-user-overrides.repo o /etc/dnf/repos.override.d/60-something2.repo o /etc/dnf/repos.override.d/80-user-overrides.repo o /etc/dnf/repos.override.d/99-config-manager.repo : o /usr/share/dnf5/repos.override.d/50-something2.repo o /usr/share/dnf5/repos.override.d/60-something2.repo o /usr/share/dnf5/repos.override.d/90-something2.repo : 1. /etc/dnf/repos.override.d/20-user-overrides.repo 2. /usr/share/dnf5/repos.override.d/50-something2.repo 3. /etc/dnf/repos.override.d/60-something2.repo 4. /etc/dnf/repos.override.d/80-user-overrides.repo 5. /usr/share/dnf5/repos.override.d/90-something2.repo 6. /etc/dnf/repos.override.d/99-config-manager.repo (Files and directories) (User Repos Override Directory) /etc/dnf/repos.override.d/ (User Repos Override Files) /etc/dnf/repos.override.d/20-user-overrides.repo (Distribution Repos Override Directory) /usr/share/dnf5/repos.override.d/ (Distribution Repos Override Files) /usr/share/dnf5/repos.override.d/50-something2.repo (FILES) (Main Configuration File) /etc/dnf/dnf.conf (Cache Files) /var/cache/libdnf5 (Repository Files) /etc/yum.repos.d/ (Variables) /etc/dnf/vars ( ). . YUM /etc/yum/vars . (DIRECTORIES) (Repository Directories) . : . . . . YUM (YUM Repositories Directory) /etc/yum.repos.d/ etc/ (Distribution Repositories Directory in /etc) /etc/distro.repos.d/ usr/ (Distribution Repositories Directory in /usr) /usr/share/dnf5/repos.d/ (Variables Directories) (Variables Directory) /etc/dnf/vars/ (Distribution Variables Directory) /usr/share/dnf5/vars.d/ (SEE ALSO) o dnf5(8), DNF5 <#command-ref-label> o dnf5.conf-vendorpolicy(5), DNF5 <#dnf5-vendor-change-policy- label> o dnf5.conf-todo(5), DNF / DNF5 <#dnf5-conf- todo-label> o dnf5.conf-deprecated(5), DNF5 <# dnf5-conf-deprecated-label> (AUTHOR) AUTHORS.md dnf5 . (COPYRIGHT) dnf5. September 6, 2026 DNF5.CONF(5)