Bug 1352234

Summary: RFE: implement /etc/dnf.conf.d drop-in configuration folder
Product: [Fedora] Fedora Reporter: Patrick Schleizer <adrelanos>
Component: dnfAssignee: rpm-software-management
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: low    
Version: rawhideCC: fedoraproject, jmracek, mcurlej, ondrej.sojka, packaging-team-maint, riehecky, vmukhame
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-04 08:31:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Patrick Schleizer 2016-07-02 21:18:31 UTC
Please implement /etc/dnf/conf.d.

Same as /etc/yum.conf.d.

A folder where one can place drop-in configuration snippets.

Comment 1 Patrick Schleizer 2016-07-03 21:53:20 UTC
use case:

Editing config files such as /etc/dnf/dnf.conf with scripts / config packages is problematic for various reasons. When modifying it as a sysadmin it may later conflict with settings changed by the user.

Also if dnf is updated and any changes are made to /etc/dnf/dnf.conf by dnf, these cannot be automatically merged. It will result in a /etc/dnf/dnf.conf.rpmnew file that needs to be manually resolved.

It would be a lot simpler / more convenient if scripts / config packages could just drop configuration snippets into /etc/dnf/conf.d. Debian has something similar with /etc/apt/conf.d.

Comment 2 Honza Silhan 2016-07-04 11:36:43 UTC
we can do that but it has low priority.

Comment 3 Fedora Admin XMLRPC Client 2016-07-08 09:26:06 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Ondřej Sojka 2017-08-09 04:26:35 UTC
https://github.com/rpm-software-management/dnf/pull/887

Comment 6 Jaroslav Mracek 2023-08-10 07:16:50 UTC
The feature is under implementation for DNF5. See https://github.com/rpm-software-management/dnf5/pull/741.

Comment 7 Martin Curlej 2025-03-04 08:31:47 UTC
This feature has been implemented in DNF5 by PR: https://github.com/rpm-software-management/dnf5/pull/813

There are no plans to implement this into DNF4. Closing.