dnf vs yum
msimacek at redhat.com
Fri Oct 24 07:51:35 UTC 2014
----- Original Message -----
> From: "Rahul Sundaram" <metherid at gmail.com>
> To: "Development discussions related to Fedora" <devel at lists.fedoraproject.org>
> Sent: Monday, October 6, 2014 10:00:54 AM
> Subject: Re: dnf vs yum
> On Mon, Oct 6, 2014 at 3:52 AM, Marcin Juszkiewicz wrote:
> Too bad that it does not also say that it provides yum ;(
> 09:52 root at pinkiepie-rawhide:mnt$ dnf install dnf-yum mock
> Error: package mock-1.1.41-3.fc22.noarch requires yum >= 2.4, but none
> of the providers can be installed
> Because it doesn't provide yum. It only provides a command line api. Tools
> that depend on the yum API including mock won't work with dnf-yum. They
> actually need to be ported over just like yumex-dnf has.
Mock-1.2 no longer depends on yum API and has been ported to use DNF.
So if you use the new version and set config_opts['package_manager']='dnf'
and also install dnf-plugins-core, you should be able to use it without any problems.
But the dnf-yum (/usr/bin/yum being symlink to dnf) scenario is not supported yet,
you have to explicitly tell it to use dnf, otherwise it won't work.
dnf and yum don't always behave the same and mock has to treat them a bit
differently. But the package itself still needs to depend on yum, because even
if dnf-yum was supported, it doesn't pull in dnf-plugins-core package which
contains builddep command.
> devel mailing list
> devel at lists.fedoraproject.org
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
More information about the devel