How To Install libhid on Fedora 34

libhid is User space USB HID access library User space USB HID access library

Introduction

In this tutorial we learn how to install libhid on Fedora 34.

What is libhid

libhid provides a generic and flexible way to access and interact with USB HID devices, much like libusb does for plain USB devices. It is based on libusb, thus it requires no HID support in the kernel and provides means to take control over a device even if the kernel governs it. libhid 0.2.17 39.fc34 x86_64 35 k libhid-0.2.17-39.fc34.src.rpm fedora User space USB HID access library http GPLv2 libhid provides a generic and flexible way to access and interact with USB HID devices, much like libusb does for plain USB devices. It is based on libusb, thus it requires no HID support in the kernel and provides means to take control over a device even if the kernel governs it.

We can use yum or dnf to install libhid on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libhid.

Install libhid on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libhid using dnf by running the following command:

sudo dnf -y install libhid

Install libhid on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libhid using yum by running the following command:

sudo yum -y install libhid

How To Uninstall libhid on Fedora 34

To uninstall only the libhid package we can use the following command:

sudo dnf remove libhid

libhid Package Contents on Fedora 34

/usr/bin/libhid-detach-device
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/5c98fd79112ab3704b8a52c674f49d7b9c0262
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/29ee08fc1224ff116eadfa5e6384bcd99ca049
/usr/lib64/libhid.so.0
/usr/lib64/libhid.so.0.0.0
/usr/share/licenses/libhid
/usr/share/licenses/libhid/README.licence
/usr/share/man/man1/libhid-detach-device.1.gz
/usr/bin/libhid-detach-device
/usr/lib/.build-id
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/53bca6e61b6db87e16a6999ceef80c74865f44
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/0f1a8e89363e3f702e5cc087a7c79d35ef36d9
/usr/lib/libhid.so.0
/usr/lib/libhid.so.0.0.0
/usr/share/licenses/libhid
/usr/share/licenses/libhid/README.licence
/usr/share/man/man1/libhid-detach-device.1.gz

References

Summary

In this tutorial we learn how to install libhid on Fedora 34 using yum and dnf.