Hciconfig not available

I read: How to debug Bluetooth problems - Fedora Project Wiki, it asked us to use hciconfig

But when I typed on bash

$ hciconfig
bash: hciconfig: command not found

How to install hciconfig. How to find which package provides this tool and how to search for it?

$ dnf search hciconfig
Last metadata expiration check: 1:07:10 ago on Sun 22 Oct 2023 12:40:05 CEST.
No matches found.

sudo dnf provides hciconfig will provide you the package that is needed to install it.

https://dnf.readthedocs.io/en/latest/command_ref.html#provides-command

1 Like

Or you could use the trick that DNF knows how to install the package that contains a file.

$ dnf install /usr/bin/hciconfig
Last metadata expiration check: 2:16:05 ago on Sun 22 Oct 2023 20:40:03 BST.
Dependencies resolved.
========================================================================================================================
 Package                           Architecture            Version                       Repository                Size
========================================================================================================================
Installing:
 bluez-deprecated                  x86_64                  5.70-1.fc38                   updates                  421 k

Transaction Summary
========================================================================================================================
Install  1 Package

Total download size: 421 k
Installed size: 1.3 M
Is this ok [y/N]:
1 Like