dnf tab autocompletion broken for package names after update (Fedora 29)
Tab autocompletion works for dnf options, but not for package names. It appears to freeze the command line and I have to hit Ctrl-C twice to get back the command prompt.
I have bash-completion
and sqlite
packages installed.
Autocompletion used to work on Fedora 28, and this issue started after upgrading to Fedora 29.
Observations on dnf
package name tab completion
- does not work for my user
- works for root
- does not work after
dnf install
ordnf info
- works after
dnf remove
(including for my user)
EDIT Using sudo strace -pXXXX -tfo /tmp/strace.log
(where XXXX is the process ID of the bash terminal where tab completion is being attempted) from here generated a 9MB 80k+ line log file and attached 55 processes. Suggestions of what hints to look for in there?
It works on my F29 box, both for dnf options as well as packages.
Any idea what I should check? All I know is it used to work on F28 and it no longer does immediately after the update to F29.
Try reinstalling
bash-completion
maybe that fixes some dependency (you needsqlite3
in order for the tab completion to work):sudo dnf install reinstall bash-completion
You could also take a look at this Q/A, it could be a similar issue.
I already tried reinstalling
bash-completion
andsqlite
(that installs sqlite3, there is no package calledsqlite3
). Does your system have/etc/bash_completion.d/dnf-completion.bash
as mentioned here? Mine does not.