Fedora Account System
Red Hat Associate
Red Hat Customer
Hello, The completion doesn't work for dnf on KDE spin. I found that it's because the file /etc/bash_completion.d/dnf-completion.bash is missing. Thanks !
Well I put this one http://pastebin.com/raw.php?i=6u4c8uab here /etc/bash_completion.d/dnf-completion.bash and dnf bash completion worked again. I removed the file and reboot waiting for a proper fix and dnf bash completion is still working ! Why ?
> I found that it's because the file /etc/bash_completion.d/dnf-completion.bash > is missing. I found the info and the dnf-completion.bash there https://ask.fedoraproject.org/en/question/69318/dnf-bash-completion/?answer=69324#post-id-69324 It's an old version of the file /usr/share/bash-completion/completions/dnf that is installed by dnf. Now if I remove this file (/usr/share/bash-completion/completions/dnf) the dnf bash completion doesn't work and if I copy it back the dnf completion work again. Don't know why it didn't work and work now. Creating a /etc/bash_completion.d/dnf-completion.bash file that contain the same content as /usr/share/bash-completion/completions/dnf somewhat triggered the dnf completion.
It should work out of the box. Don't add anything to /etc/bash_completion.d for this, /usr/share/bash-completion/completions/dnf is shipped by the dnf package (not bash-completion!), and that's the correct file. Reassigning to dnf because of the file ownership, and closing because it works after all.