Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please document order of precedence for automatic.conf #1770

Closed
jmontleon opened this issue Oct 10, 2024 · 0 comments · Fixed by #1986
Closed

Please document order of precedence for automatic.conf #1770

jmontleon opened this issue Oct 10, 2024 · 0 comments · Fixed by #1986

Comments

@jmontleon
Copy link

jmontleon commented Oct 10, 2024

I had some unexpected behavior (updates were being downloaded and not applied) on a system and it looks like it came down to having both /etc/dnf/automatic.conf and /etc/dnf/dnf5-plugins/automatic.conf

/usr/share/dnf5/dnf5-plugins/automatic.conf only talks about /etc/dnf/dnf5-plugins/automatic.conf.

# This configuration file is managed by the dnf5-plugin-automatic package.
# Please do not edit it. To make changes in dnf5 automatic configuration
# edit /etc/dnf/dnf5-plugins/automatic.conf and make your adjustments there.

https://github.com/rpm-software-management/dnf5/blob/main/dnf5-plugins/automatic_plugin/config/usr/share/dnf5/dnf5-plugins/automatic.conf#L3

Meanwhile the man page only talks about /etc/dnf/automatic.conf

The operation of the tool is controlled by configuration files. Default values are set from ``/usr/share/dnf5/dnf5-plugins/automatic.conf`` config file. Host-specific overrides from ``/etc/dnf/automatic.conf`` are then applied.

https://github.com/rpm-software-management/dnf5/blob/main/doc/dnf5_plugins/automatic.8.rst?plain=1#L36

On some freshly installed systems I copied /usr/share/dnf5/dnf5-plugins/automatic.conf to /etc/dnf/dnf5-plugins/automatic.conf modified it and everything worked fine.

On the problematic one I did an upgrade and am not sure if automatic.conf was left over from dnf 4 automatic or I got my wires crossed reading the docs (I suspect left over since the modify date is April), but either way it led to confusion, as it seems like /etc/dnf/automatic.conf takes precedence over /etc/dnf/dnf5-plugins/automatic.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant