Ask Your Question

Tab completion of package names in DNF

asked 2016-08-09 01:51:02 +0000

reegmo gravatar image

I have a fresh install of Fedora 24 Server and I can't tab-complete package names in dnf. Tab completion works for dnf options, so dnf ins [tab] completes to dnf install, but dnf install powerl[tab][tab][tab][tab] does nothing. In the workstation edition on my two other computers, this would complete to dnf install powerline.

How can I fix it?

edit retag flag offensive close merge delete


Have you tried it after a dnf update? Maby that the metadata is not cached on your fresh installation.

beduine ( 2016-08-09 16:02:56 +0000 )edit

Yes, I ran a dnf update and the issue remains.

reegmo ( 2016-08-09 16:11:42 +0000 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-08-09 16:21:09 +0000

reegmo gravatar image

The solution is to install sqlite: sudo dnf install sqlite

I read through /usr/share/bash-completion/completions/dnf and noticed it calls a program called sqlite3 in a few places. I checked my desktop and laptop, which run Fedora 24 Workstation and don't exhibit the problem with package name completion, and found that they have a file /usr/bin/sqlite3 installed. dnf provides /usr/bin/sqlite3 revealed that this executable is provided by the sqlite package.

I installed sqlite, logged out and back in, and package name completion is working again.

edit flag offensive delete link more


This is still the correct solution even for Fedora 27 (sorry, I cannot upvote yet).

rkraneis ( 2017-09-26 18:02:12 +0000 )edit

Thank You!!!

amoschiu ( 2017-10-18 13:27:16 +0000 )edit

Somebody! should report a bug about it :)

hedayat ( 2018-02-08 11:46:30 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools



Asked: 2016-08-09 01:50:00 +0000

Seen: 4,223 times

Last updated: Aug 09 '16