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

/etc/dnf/{dnf.d|conf.d}/*.conf overrides support #1914

Closed
birdie-github opened this issue Mar 28, 2023 · 6 comments
Closed

/etc/dnf/{dnf.d|conf.d}/*.conf overrides support #1914

birdie-github opened this issue Mar 28, 2023 · 6 comments
Assignees

Comments

@birdie-github
Copy link

birdie-github commented Mar 28, 2023

I'd love to override dnf.conf settings without touching the file because future updates may change it.

Can this be done without /etc/dnf/{dnf.d|conf.d}/override.conf or I'm simply missing something?

@marcusmueller
Copy link

marcusmueller commented Mar 28, 2023

An /etc/dnf/conf.d/ directory would be imho quite awesome. It would make vendoring Fedora/RHEL installs much easier – say you want your DNF to behave some specific way all across your organization, you just drop in a config file in your myorganization-customization RPM and roll that out (or include it in your kickstart)

@birdie-github birdie-github changed the title /etc/dnf/dnf.d/*.conf overrides support /etc/dnf/{dnf.d|conf.d}/*.conf overrides support Mar 28, 2023
@marcusmueller
Copy link

ah wait, #1414 might be addressing this?

@birdie-github
Copy link
Author

ah wait, #1414 might be addressing this?

It does except it's seemingly abandoned and has got "This branch has conflicts that must be resolved
Only those with write access to this repository can merge pull requests".

@marcusmueller
Copy link

Ah, that's not a bad sign or anything; totally normal during team development. A git rebase isn't necessarily a big thing.

But, essentially what this issue here does is be a github mirror of https://bugzilla.redhat.com/show_bug.cgi?id=1352234 (which I just learned about)

@j-mracek j-mracek self-assigned this Apr 3, 2023
@j-mracek
Copy link
Contributor

The feature is already implemented in DNF5. The feature is not yet documented and not yet released therefore stay tuned. DNF5 already replaced microdnf in Fedora 38, and in Fedora 41 will replace DNF.

@birdie-github
Copy link
Author

Fixed by rpm-software-management/dnf5#813

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

No branches or pull requests

3 participants