Proposal: Consolidate yum directory usage

Ralf Ertzinger fedora at camperquake.de
Sat Nov 11 17:00:40 UTC 2006


Hi.

I think the current usage of configuration files and directories
for yum has somewhat gotten out of hand.

yum-3.0.1-1 uses one config file (yum.conf), and two configuration
directories (yum.repos.d and yum, which in turn just contains pluginconf.d)
under /etc.

I propose to move all yum configuration files and directories to
/etc/yum (move /etc/yum.conf to /etc/yum/yum.conf, move /etc/yum.repos.d
to /etc/yum/repos.d). This could easily be done by a %post scriptlet
during an RPM transaction. Symlinks ought to be set (yum.conf -> yum/yum.conf
and yum.repos.d -> yum/repos.d) to keep other packages working which
drop files in yum.repos.d. And there are tons of documents which reference
/etc/yum.conf.

Maybe yum ought to show warnings (after FC7, maybe) when it detects
that /etc/yum.conf or /etc/yum.repos.d still exist (even as symlinks)
and advise the user that usage of these files is deprecated.

If there is interest in this I'll produce patches for the spec file
(to migrate the config) and for yum (to find files in the new locations
and to show deprecation warnings)

-- 
"All men are frauds. The only difference between them is that some
admit it. I myself deny it."  -- H.L. Mencken




More information about the fedora-devel-list mailing list