Ask Your Question

Tab completion of package names in DNF

asked 2016-08-08 20:51:02 -0500

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 gravatar imagebeduine ( 2016-08-09 11:02:56 -0500 )edit

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

reegmo gravatar imagereegmo ( 2016-08-09 11:11:42 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-09 11:21:09 -0500

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 gravatar imagerkraneis ( 2017-09-26 13:02:12 -0500 )edit

Thank You!!!

amoschiu gravatar imageamoschiu ( 2017-10-18 08:27:16 -0500 )edit

Somebody! should report a bug about it :)

hedayat gravatar imagehedayat ( 2018-02-08 05:46:30 -0500 )edit

Your Answer

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

Add Answer

Question Tools



Asked: 2016-08-08 20:50:00 -0500

Seen: 4,758 times

Last updated: Aug 08 '16