Description of problem: `dnf history` command's output is limited to 79 columns regardless of the actual terminal width. This often results in the commands column being trimmed, and makes it impossible to see the complete history information. How reproducible: Execute dnf install/update/remove command with parameters string longer than 24 characters. For example: yum install vim-enhanced less mc tree bind-utils Actual results: [root@safe-glider cli]# dnf history ID | Command line | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 9 | install vim-enhanced les | 2019-12-24 11:10 | Install | 37 EE 8 | reinstall dnf | 2019-12-24 10:30 | R | 2 EE 7 | -y install man | 2019-12-24 10:28 | Install | 3 EE 6 | -vv install vim-enhanced | 2019-12-24 10:24 | Install | 4 EE 5 | -vv install less | 2019-12-24 10:23 | Install | 1 EE 4 | -y remove libsss_idmap l | 2019-12-23 20:35 | Removed | 3 3 | -y install cpio dhcp-cli | 2019-12-23 20:35 | Install | 42 2 | -y upgrade | 2019-12-23 20:34 | I, U | 10 1 | | 2019-12-05 07:48 | Install | 171 EE Expected results: [root@safe-glider cli]# dnf history ID | Command line | Date and time | Action(s) | Altered ---------------------------------------------------------------------------------------------------------------------------------------------------------- 9 | install vim-enhanced less mc tree bind-utils | 2019-12-24 11:10 | Install | 37 EE 8 | reinstall dnf | 2019-12-24 10:30 | R | 2 EE 7 | -y install man | 2019-12-24 10:28 | Install | 3 EE 6 | -vv install vim-enhanced | 2019-12-24 10:24 | Install | 4 EE 5 | -vv install less | 2019-12-24 10:23 | Install | 1 EE 4 | -y remove libsss_idmap libsss_nss_idmap sssd-client | 2019-12-23 20:35 | Removed | 3 3 | -y install cpio dhcp-client file findutils fipscheck gettext glibc-all-langpacks hardlink initscri | 2019-12-23 20:35 | Install | 42 2 | -y upgrade | 2019-12-23 20:34 | I, U | 10 1 | | 2019-12-05 07:48 | Install | 171 EE Additional info:
PR: https://github.com/rpm-software-management/dnf/pull/1567
(In reply to nsella from comment #1) > PR: https://github.com/rpm-software-management/dnf/pull/1567 Edit: A PR that fixes the bug for terminal output was merged. [1] For redirecting stdout to file there is an enhancement of the previous. [2] [1] https://github.com/rpm-software-management/dnf/pull/1559 [2] https://github.com/rpm-software-management/dnf/pull/1587
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32.
test: https://github.com/rpm-software-management/ci-dnf-stack/pull/813
FEDORA-2020-a943fde9ba has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-a943fde9ba
FEDORA-2020-f3f7292b39 has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-f3f7292b39` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-f3f7292b39 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-a943fde9ba has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-a943fde9ba` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-a943fde9ba See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-a943fde9ba has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2020-f3f7292b39 has been pushed to the Fedora 31 stable repository. If problem still persists, please make note of it in this bug report.
When I run "dnf history" on rhel8, the output are expected. [root@safe-glider cli]# dnf history ID | Command line | Date and time | Action(s) | Altered ---------------------------------------------------------------------------------------------------------------------------------------------------------- 9 | install vim-enhanced less mc tree bind-utils | 2019-12-24 11:10 | Install | 37 EE 8 | reinstall dnf | 2019-12-24 10:30 | R | 2 EE 7 | -y install man | 2019-12-24 10:28 | Install | 3 EE 6 | -vv install vim-enhanced | 2019-12-24 10:24 | Install | 4 EE 5 | -vv install less | 2019-12-24 10:23 | Install | 1 EE 4 | -y remove libsss_idmap libsss_nss_idmap sssd-client | 2019-12-23 20:35 | Removed | 3 3 | -y install cpio dhcp-client file findutils fipscheck gettext glibc-all-langpacks hardlink initscri | 2019-12-23 20:35 | Install | 42 2 | -y upgrade | 2019-12-23 20:34 | I, U | 10 1 | | 2019-12-05 07:48 | Install | 171 EE but when I run ssh rhel8vm "sudo dnf history", the output still trimmed like this: [root@safe-glider cli]# dnf history ID | Command line | Date and time | Action(s) | Altered ------------------------------------------------------------------------------- 9 | install vim-enhanced les | 2019-12-24 11:10 | Install | 37 EE 8 | reinstall dnf | 2019-12-24 10:30 | R | 2 EE 7 | -y install man | 2019-12-24 10:28 | Install | 3 EE 6 | -vv install vim-enhanced | 2019-12-24 10:24 | Install | 4 EE 5 | -vv install less | 2019-12-24 10:23 | Install | 1 EE 4 | -y remove libsss_idmap l | 2019-12-23 20:35 | Removed | 3 3 | -y install cpio dhcp-cli | 2019-12-23 20:35 | Install | 42 2 | -y upgrade | 2019-12-23 20:34 | I, U | 10 1 | | 2019-12-05 07:48 | Install | 171 EE Any idea how to solve it? I would like get this "dnf history" via ansible ad-hoc command. Thank you.