/etc/yum.repos.d -> /etc/distro.repos.d

I am curious whether we can move our repo files from

In Fedora 31 we are going to wipe away last left overs of YUM, so it really does not have sense to keep `yum.repos.d`.

DNF for ages parse config files from:
{"/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d"}
Therefore the move of repo files does not require any change in DNF. It should be just change in fedora-repos.
If anyone put his private repos to /etc/yum.repos.d then DNF will parse it too. From DNF point of view, the files can be
split randomly across all those directories.

Of course, that directory is mentioned everywhere in documentation and it will take ages to change it as it is written
everywhere. But the other option is to stuck with yum.repos.d forever.

Is there anything which can block this move?



Re: /etc/yum.repos.d -> /etc/distro.repos.d

By Kalev Lember at 03/13/2019 - 08:50

On 3/13/19 13:38, Miroslav Suchý wrote:
Please don't, it's just pointless renaming that invalidates all end user
documentation and makes it harder for other programs such as packagekit
and gnome-software that all need to adopt for the new paths.

Also, I've heard rumours that dnf might get renamed back to yum in the

Re: /etc/yum.repos.d -> /etc/distro.repos.d

By =?ISO-8859-2?Q?... at 03/13/2019 - 10:36

Dne 13. 03. 19 v 13:50 Kalev Lember napsal(a):
Not exactly true.

When documentaion state: put this file in /etc/yum.repos.d/ ... then it will be still valid. DNF will read that file
without a problem.

We *may* start slowly change these documentation to "put this file in /etc/distro.repos.d".

Only invalid statement will be "fedora.repo is in /etc/yum.repos.d/"


Re: /etc/yum.repos.d -> /etc/distro.repos.d

By King InuYasha at 03/13/2019 - 08:41

On Wed, Mar 13, 2019 at 8:39 AM Miroslav Suchý < ... at redhat dot com> wrote:
Nothing except bikeshedding. :)

That said, I think if we want to move the repo files now, we should
also consider making so package installed repo and GPG files are in
/usr/share and that admin additions/overrides can be stored in /etc.
Same goes for vars and other such stuff.

That's more or less the mechanism we've adopted for tons of other
things, and it'd be nice to have it in DNF too...

Re: /etc/yum.repos.d -> /etc/distro.repos.d

By Dridi Boukelmoune at 03/13/2019 - 09:03

On Wed, Mar 13, 2019 at 1:42 PM Neal Gompa < ... at gmail dot com> wrote:
Why not /etc/dnf/repos.d and a symlink for /etc/yum.repos.d?

Agreed, but it would be nice to have tooling to list repos, see their
origin and whether or not they were overridden.

Wasn't systemd the catalyst for this?


Re: /etc/yum.repos.d -> /etc/distro.repos.d

By =?ISO-8859-2?Q?... at 03/13/2019 - 09:07

Dne 13. 03. 19 v 14:03 Dridi Boukelmoune napsal(a):
Currently DNF reads both of them. So you will end with duplicate repositories, because DNF would see them twice.