dnf-1.0.0-1.fc22.noarch Yeah, so I'm always forgetting "sudo"... [beland@localhost ~]$ dnf update Error: This command has to be run under the root user. [beland@localhost ~]$ dnf history You don't have access to the history DB. It would be nice if "dnf history" recommended running as root, because that is almost certainly the solution. The "you don't have access" message is a bit too vague, and especially since I'm used to the "has to be run as root" message, makes it seem like something is malfunctioning.
The message "This command has to be run under the root user." is produced by the "noroot" plugin. So, the "dnf history list" command should at least set the "root_user demand" so that the plugin will do its job in this case as well. And adding some suggestion to the message printed if the "noroot" plugin is missing probably cannot hurt.
Related: bug 1296938 requests a way to configure dnf so that non-root users do have (read only) access to the history database.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
This is still an issue in Fedora 23. Please change the version of this bug to 23 and the status to NEW.
as requested above
PR available on https://github.com/rpm-software-management/dnf/pull/596
*** Bug 1321490 has been marked as a duplicate of this bug. ***