From Fedora Project Wiki

< User:Jsilhan

Revision as of 16:28, 10 May 2016 by Jsilhan (talk | contribs) (Created page with "<!-- Self Contained or System Wide Change Proposal? Use this guide to determine to which category your proposed change belongs to. Self Contained Changes are: * changes to is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Use /etc/distro.repos.d as default reposdir


Change the default repository configuration directory to use /etc/distro.repos.d.


  • Email: jsilhan at fedoraproject dot org
  • Release notes owner:

Current status

  • Last updated: 2016-05-10
  • Targeted release: Fedora 25
  • Tracker bug: <will be assigned by the Wrangler>

Detailed Description

For DNF 2.0 in Fedora 25, the DNF team would like to move the default repository configuration directory from /etc/yum.repos.d to /etc/distro.repos.d.

The location more accurately reflects the nature of the repositories, and also implies that other tools can look here for repository information.

Benefit to Fedora

This directory path implies that the repositories are consumable by more than Yum, and other tools that can consume repo files can use it. Other package managers that can read this data (such as PackageKit) would also obviously use this location.


  • Proposal owners:
    • DNF already supports /etc/distro.repos.d, so nothing needs to be done here.
  • Other developers:
    • PackageKit's Hif backend will need to change to use the new path.
    • fedora-repos needs to change to the new path.

  • Policies and guidelines:
    • Packages containing repository configuration will need to change to store repo files in /etc/distro.repos.d.
  • Trademark approval: N/A (not needed for this Change)

Upgrade/compatibility impact

  • While DNF will still read /etc/yum.repos.d, PackageKit will not, so repository packages that install to /etc/yum.repos.d need to move to the new path for F25 updates.

How To Test

1. Install or upgrade to Fedora 25

2. Ensure repo configs are in /etc/distro.repos.d

3. Add a repo in that directory and see if it is recognized and used.

User Experience

Users may notice that system and COPR repository configuration have moved to /etc/distro.repos.d.


  • fedora-repos
  • PackageKit
  • dnf

Contingency Plan

  • Contingency mechanism: Revert to using /etc/yum.repos.d
  • Contingency deadline: Beta freeze
  • Blocks release? No
  • Blocks product? N/A


With Fedora 25, repositories are now written to /etc/distro.repos.d instead of the older /etc/yum.repos.d.

Release Notes