How To Install libusb-devel on CentOS 7

In this tutorial we learn how to install libusb-devel on CentOS 7. libusb-devel is Development files for libusb

Introduction

In this tutorial we learn how to install libusb-devel on CentOS 7.

What is libusb-devel

This package contains the header files, libraries and documentation needed to develop applications that use libusb-0.1. However new applications should use libusb-1.0 library instead of this one. This package contains the header files, libraries and documentation needed to develop applications that use libusb-0.1. However new applications should use libusb-1.0 library instead of this one.

We can use yum or dnf to install libusb-devel on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libusb-devel.

Install libusb-devel on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install libusb-devel using yum by running the following command:

sudo yum -y install libusb-devel

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

sudo dnf -y install libusb-devel

How To Uninstall libusb-devel on CentOS 7

To uninstall only the libusb-devel package we can use the following command:

sudo dnf remove libusb-devel

References

Summary

In this tutorial we learn how to install libusb-devel on CentOS 7 using yum and dnf.