I lost power to a server I have running Rawhide. The power was lost mid DNF upgrade. I'm not sure what it means exactly but regardless of what command I type. If it is "dnf (etc)" I get an error message.

Error: Command "repoquery" already defined

I'm not sure why this is. If anyone has any clue how to fix it I would appreciate it. Do I need to completely reinstall? This is the last option I would like to take.

So I keep trying this as it seems the most promising option. However I am not used to RPM installations. I amusing the command

rpm -U dnf-2.0.0-2.fc26.src.rpm

as well as

rpm -i dnf-2.0.0-2.fc26.src.rpm

then I rerun DNF with the same error. It gives the information:

Warning: user mockbuild does not exist - using root

This warning it gives you, since you are actually installing sources, usually written in C.

The general policy in Linux is that all package's source codes installation, configuration and compilation/linkage are done as normal user. make install is ONLY operation to be done as root : root. Since Linux usually does not track many users at the time created, it uses for this purposes (by default) one called mockbuild : mockbuild, which should be created at Fedora installation time.

Why it is not created (for you) then, no idea?!

_nobody_

__________________
I am nobody, and nobody is perfect, therefore I am perfect!