Mock, Rawhide and DNF

Christopher Meng cickumqt at
Fri Feb 13 11:10:01 UTC 2015

On Friday, February 13, 2015, Pierre-Yves Chibon <pingou at>

> On Fri, Feb 13, 2015 at 09:35:30AM +0100, Miroslav Suchy wrote:

> RHEL/EPEL users do not have DNF available, therefore they are unable to
> > build packages for Fedora Rawhide. There is however a workaround. Just
> > change this line:
> >   config_opts['package_manager'] = 'dnf'
> > to this:
> >   config_opts['package_manager'] = 'yum'
> > or you can simply delete it because Yum is the default.
> > Or you can pass "--yum" to mock.
> Could it be an idea to check if /usr/bin/dnf exists (or if dnf can be
> found in
> $PATH) before calling dnf and if not a) warn the user and b) switch back
> to yum?
> This would make mock run out of the box for RHEL/EPEL users as well.

Mock needs to check if /usr/bin/dnf is a file instead of a symlink as well
since I've created a symlink on my system. (a little bit strange though)


Yours sincerely,
Christopher Meng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the devel mailing list