Bug 1218401 - [doc] document history_list_view and set it to cmd by default
[doc] document history_list_view and set it to cmd by default
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
All All
low Severity low
: ---
: ---
Assigned To: packaging-team-maint
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-05-04 15:26 EDT by Stephen
Modified: 2015-08-19 03:51 EDT (History)
9 users (show)

See Also:
Fixed In Version: dnf-plugins-core-0.1.10-1.fc23
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-08-14 22:13:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stephen 2015-05-04 15:26:17 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

Actual results:

"Command line" column is replaced by much less useful "Login user"

Expected results:

"Command line" column is always shown by default, or there is a man-documented (i.e. not --setopt) way to force its display.

Additional info:

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.
Comment 1 Honza Silhan 2015-05-29 04:36:08 EDT
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.
Comment 2 Honza Silhan 2015-07-07 11:12:38 EDT
*** Bug 1239274 has been marked as a duplicate of this bug. ***
Comment 3 Fedora Update System 2015-08-10 06:05:11 EDT
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.
Comment 4 Fedora Update System 2015-08-10 06:49:21 EDT
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.
Comment 5 Fedora Update System 2015-08-10 22:10:36 EDT
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).
Comment 6 Fedora Update System 2015-08-14 22:13:30 EDT
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.
Comment 7 Fedora Update System 2015-08-19 03:51:01 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.