How To Install libusbx on CentOS 7

In this tutorial we learn how to install libusbx on CentOS 7. libusbx is Library for accessing USB devices

Introduction

In this tutorial we learn how to install libusbx on CentOS 7.

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. 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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libusbx.

Install libusbx on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install libusbx

Install libusbx on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install libusbx

How To Uninstall libusbx on CentOS 7

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 CentOS 7 using yum and dnf.