How To Install libusbx on AlmaLinux 8

In this tutorial we learn how to install libusbx in AlmaLinux 8. libusbx is Library for accessing USB devices

Introduction

In this tutorial we learn how to install libusbx on AlmaLinux 8.

What is libusbx

This package provides a way for applications to access USB devices. Libusbx is a fork of the original libusb, which is a fully API and ABI compatible drop in for the libusb-1.0.9 release. The libusbx fork was started by most of the libusb-1.0 developers, after the original libusb project did not produce a new release for over 18 months. Note that this library is not compatible with the original libusb-0.1 series, if you need libusb-0.1 compatibility install the libusb package.

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

Install libusbx on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libusbx

Install libusbx on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libusbx

How To Uninstall libusbx on AlmaLinux 8

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

sudo dnf remove libusbx

References

Summary

In this tutorial we learn how to install libusbx on AlmaLinux 8 using yum and dnf.