On Wed, 6 May 2026 13:10:22 +1000 "Michael D. Setzer II via users" 
<[email protected]> wrote:

> google search shows this as default?
> [main]
> gpgcheck=True
> installonly_limit=3
> clean_requirements_on_remove=True
> best=True
> skip_if_unavailable=True

google is wrong here :-) The default for /etc/dnf/dnf.conf is:

------------------------------ cut here ------------------------------
# see `man dnf.conf` for defaults and possible options

[main]
------------------------------ cut here ------------------------------

You can verify with:

    rpm -qf /etc/dnf/dnf.conf 
    ibdnf5-5.2.18.0-2.fc43.x86_64 # Not quite up to date
    mkdir /tmp/a
    cd /tmp/a
    dnf download libdnf5.x86_64
    rpm2cpio < libdnf5-5.2.18.0-3.fc43.x86_64.rpm | cpio -idm
    cat etc/dnf/dnf.conf 
    # see `man dnf.conf` for defaults and possible options

    [main]
    fm@fmpc

For clarity, it is better IMO to not modify such a global config file,
but to use drop-ins. In this case, use: /etc/dnf/libdnf5.conf.d/...

See DROP-IN CONFIGURATION DIRECTORIES in the man of dnf.conf

Also, to see the resulting configuration, use: dnf --dump-main-config

-- 
francis
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to