How To Install hidapi on Fedora 34

hidapi is Library for communicating with USB and Bluetooth HID devices Library for communicating with USB and Bluetooth HID devices

Introduction

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

What is hidapi

HIDAPI is a multi-platform library which allows an application to interface with USB and Bluetooth HID-class devices on Windows, Linux, FreeBSD and Mac OS X. On Linux, either the hidraw or the libusb back-end can be used. There are trade-offs and the functionality supported is slightly different. hidapi 0.10.1 3.fc34 x86_64 48 k hidapi-0.10.1-3.fc34.src.rpm fedora Library for communicating with USB and Bluetooth HID devices https GPLv3 or BSD HIDAPI is a multi-platform library which allows an application to interface with USB and Bluetooth HID-class devices on Windows, Linux, FreeBSD and Mac OS X. On Linux, either the hidraw or the libusb back-end can be used. There are trade-offs and the functionality supported is slightly different.

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

Install hidapi 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 hidapi using dnf by running the following command:

sudo dnf -y install hidapi

Install hidapi 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 hidapi using yum by running the following command:

sudo yum -y install hidapi

How To Uninstall hidapi on Fedora 34

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

sudo dnf remove hidapi

hidapi Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/a0e10070d72011ae8274153f5a4fe34fcd561f
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/0e055da1c8c1208d525c3d9fcb1da586f47c72
/usr/lib64/libhidapi-hidraw.so.0
/usr/lib64/libhidapi-hidraw.so.0.0.0
/usr/lib64/libhidapi-libusb.so.0
/usr/lib64/libhidapi-libusb.so.0.0.0
/usr/share/doc/hidapi
/usr/share/doc/hidapi/AUTHORS.txt
/usr/share/doc/hidapi/LICENSE-bsd.txt
/usr/share/doc/hidapi/LICENSE-gpl3.txt
/usr/share/doc/hidapi/LICENSE-orig.txt
/usr/share/doc/hidapi/LICENSE.txt
/usr/share/doc/hidapi/README.md
/usr/lib/.build-id
/usr/lib/.build-id/88
/usr/lib/.build-id/88/101c2356ccbbbb2308b9dd46c4db5d34b05ed8
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/1da7b2da7f5d98e3f257f0626ff3fbd5167621
/usr/lib/libhidapi-hidraw.so.0
/usr/lib/libhidapi-hidraw.so.0.0.0
/usr/lib/libhidapi-libusb.so.0
/usr/lib/libhidapi-libusb.so.0.0.0
/usr/share/doc/hidapi
/usr/share/doc/hidapi/AUTHORS.txt
/usr/share/doc/hidapi/LICENSE-bsd.txt
/usr/share/doc/hidapi/LICENSE-gpl3.txt
/usr/share/doc/hidapi/LICENSE-orig.txt
/usr/share/doc/hidapi/LICENSE.txt
/usr/share/doc/hidapi/README.md

References

Summary

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