Relocate RPM repository configs to /usr
Summary
Relocate all packaged RPM repository configuration data from /etc to /usr.
Owner
- Name: Neal Gompa
- Email: ngompa13@gmail.com
Current status
- Targeted release: Fedora Linux 45
- Last updated: 2026-05-27
- Announced
- Discussion thread
- FESCo issue: #3606
- Tracker bug: #2481848
- Release notes tracker: <will be assigned by the Wrangler>
Detailed Description
This Change aims relocate all packaged RPM repository configuration data from /etc/yum.repos.d to /usr/share/dnf5/repos.d. All Fedora packaging PGP/GPG keys in fedora-gpg-keys will also be relocated to /usr/share/pki/rpm-gpg.
This is now possible because all major read+write frontends for DNF configuration now go through DNF5. Fedora has now switched to DNF version 5 in the build system (Fedora Linux 40), the user-facing CLI tools (Fedora Linux 41), the installer (Fedora Linux 43), and PackageKit (Fedora Linux 44). This means all the major supported entry points implicitly support DNF5's layered configuration system.
The fedora-third-party tool used by Fedora KDE Plasma variants and Fedora Workstation will also be adjusted for this new world.
Feedback
Benefit to Fedora
The key benefit for Fedora is it establishes a clean separation of packaged repository definitions and allows for users to trivially identify local changes and undo them if desired. This is also necessary to simplify how derivatives handle repository definitions, since moving it to /usr allows the middle layer for packaged repository configuration overrides to function properly.
Scope
- Proposal owners:
: Relocate yum.repos.d and rpm-gpg data to new locations in
fedora-repos/usr: Relocate yum.repos.d and rpm-gpg data to new locations in
fedora-workstation-repositories/usr: Update configuration editor code to generate drop-in files in
fedora-third-party/etc/dnf/repos.override.d
- Other developers: N/A (not needed for this Change)
- Release engineering: #13321
- Policies and guidelines: N/A (not needed for this Change)
- Trademark approval: N/A (not needed for this Change)
- Alignment with the Fedora Strategy: N/A (not needed for this Change)
Upgrade/compatibility impact
Distribution provided RPM repository configuration files, if unmodified, will cleanly move from /etc to /usr. If modified, they will stay in place and override the configuration files shipped in /usr entirely.
Going forward, packaged repository configuration will no longer be present in /etc.
Legacy RPM package managers (like DNF version 4, YUM, etc.) will not function as system package managers anymore, since the configuration will largely not exist for them anymore.
How To Test
Once the changes are made in Rawhide, simply upgrade into them and interact with the package manager normally.
User Experience
There should be no substantially visible changes to the user experience.
Dependencies
Contingency Plan
- Contingency mechanism: Rollback and defer to the next release
- Contingency deadline: Final Freeze
- Blocks release? Yes
Documentation
DNF5 documentation on the configuration system: https://dnf5.readthedocs.io/en/latest/dnf5.conf.5.html
Release Notes
Fedora Linux 45 now ships all distribution-provided configuration for the DNF package manager in /usr, which makes it easier to identify user-local changes in /etc separately from distribution-provided configuration.
