Description of problem:
there's no auto completion with the command "dnf".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.when using yum, press the "tab" key ,you will see a lof of the sub command,such as "list" "clean" "remove"
2.when using dnf, there's no auto completion at all.
3.there's auto completion in fedora when using "dnf".
no auto completion with dnf.
when press "tab", it should show a lot of sub commands.
If a user is used to Fedora, it will be difficult to get used to it without auto-completion.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
It's possible this bug was caused by the lack of /usr/bin/python3 on the test system. That might be puzzling to some users at first, as dnf clearly works and needs python. But it uses /usr/libexec/platform-python. I recently ran into this issue in an updated CentOS 8 container with dnf-4.2.7-6.el8.noarch.
The completion script should use that as well, but it doesn't because the code to use that alternate python had the path as /usr/libexec/system-python. That was added back in 2017 and the path was changed before it reached EL8.
A PR to fix that issue has been merged: https://github.com/rpm-software-management/dnf/pull/1562 (https://github.com/rpm-software-management/dnf/commit/46c5023).