Red Hat Bugzilla – Bug 1218401
[doc] document history_list_view and set it to cmd by default
Last modified: 2015-08-19 03:51:01 EDT
Description of problem:
dnf history shows the user in *place* of the command line if more than one user has executed a dnf command, and there is no obvious way (e.g. documented in the man page) to show the commands instead.
Steps to Reproduce:
1. Run two erase/install/update etc. commands, each as a different user.
2. sudo dnf history
"Command line" column is replaced by much less useful "Login user"
"Command line" column is always shown by default, or there is a man-documented (i.e. not --setopt) way to force its display.
dnf/yum history is/was a useful way of finding and undoing specific transactions, expecially uninstalling specific software and dependencies. Without the "Command line" column this is not possible.
With yum this did not happen. The issue manifested when using F22 after running "dnf migrate".
I discovered the workaround of "--setopt=history_list_view=cmds" by accident from bug 1208000 and a bit of further investigation.
An interim workaround would be to add information about the above workaround to the dnf man page. Alternatively the history_list_view option could be set to cmds by default in /etc/dnf/dnf.conf instead of 1user-cmds.
Thank for the report. I also see more benefits showing the command rather than the user in history list so it could be set by default to cmd and make `history_list_view` option documented.
*** Bug 1239274 has been marked as a duplicate of this bug. ***
dnf-plugins-core-0.1.10-1.fc23,dnf-1.1.0-1.fc23,hawkey-0.6.0-1.fc23 has been submitted as an update for Fedora 23.
dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22 has been submitted as an update for Fedora 22.
Package dnf-plugins-core-0.1.10-1.fc22, dnf-1.1.0-1.fc22, hawkey-0.6.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.10-1.fc22 dnf-1.1.0-1.fc22 hawkey-0.6.0-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-plugins-core-0.1.10-1.fc22, hawkey-0.6.0-1.fc22, dnf-1.1.0-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
dnf-plugins-core-0.1.10-1.fc23, hawkey-0.6.0-1.fc23, dnf-1.1.0-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.