Bug 1496153 - Extend DNF compatibility with YUM [NEEDINFO]
Summary: Extend DNF compatibility with YUM
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 27
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Jaroslav Mracek
QA Contact: Fedora Extras Quality Assurance
Keywords: Triaged
Depends On:
TreeView+ depends on / blocked
Reported: 2017-09-26 14:47 UTC by Daniel Mach
Modified: 2018-06-28 08:21 UTC (History)
3 users (show)

Clone Of:
Last Closed: 2018-06-28 08:21:10 UTC
jmracek: needinfo? (dmach)

Attachments (Terms of Use)

Description Daniel Mach 2017-09-26 14:47:35 UTC
Existing YUM users are used to use 'yum' executable,
manage '/etc/yum.conf'
and read yum(8), yum-shell(8) and yum.conf(5) man pages.

We should provide them compat symlinks so they can find everything in usual places. Here's my brief analysis on what needs to be done:

Compat symlinks:

/etc/yum -> dnf
/etc/yum.conf -> dnf.conf
/usr/bin/yum -> dnf
/usr/share/doc/dnf -> yum
/usr/share/man/man5/yum.conf.5 -> dnf.conf.5
/usr/share/man/man8/yum-shell.8 -> dnf-shell.8
/usr/share/man/man8/yum.8 -> dnf.8

Keep as it is:






(covered as part of /etc/yum -> dnf symlink)

(API changes -> incompatible plugins; we don't want to support this location for any longer)
(bash completion replaced with DNF's)

(cache, no need for a compat symlink)

(data in incompatible format, we probably don't want this symlink either)

Comment 1 Jaroslav Mracek 2017-10-02 14:38:01 UTC
Do we really need /usr/share/doc/dnf -> yum ?

With /etc/yum -> dnf we have to keep in mind that some packages add protected packages configuration in "/etc/yum/protected.d/*.conf".

I also have to point out for /usr/share/man/man8/yum-shell.8 -> dnf-shell.8 that there is nothing like "dnf-shell.8*".

Comment 2 Jaroslav Mracek 2017-10-03 06:45:34 UTC
I create a patch, that provide most of requested features (https://github.com/rpm-software-management/dnf/pull/938).

Comment 3 Jaroslav Mracek 2018-06-28 08:21:10 UTC
The issue is solved by dnf-3.0.1-1 that was released into rawhide.

Note You need to log in before you can comment on or make changes to this bug.