Red Hat Bugzilla – Bug 1263054
Mock tries to use dnf by default
Last modified: 2016-09-23 04:05:31 EDT
The default configuration of mock in EL6 and EL7 tries to use dnf in newer Fedora buildroots. Naturally, this ends in a crash, because dnf is not available on EL6.
While the workaround has been documented at
I am surprised this is not included in the default config.
The default config in EL6 and EL7 for F23 and rawhide should be modified so that yum is called instead of dnf so that mock works properly. [Yes, I am aware that there may be small differences in the result due to different dependency satisfaction between yum and dnf, but it's better that it works in 99% of cases than fails in 100% of cases.]
This has been done in commit 45beb2e. In next version Mock will emit warning. Wait for confirmation, suggest you how to get rid off this warning next time and eventually proceed. But will not fail.
This somehow went off the radar. This fix is already in mock-1.2.21, which is either in updates or in stable.