How To Install usbredir on CentOS 7

In this tutorial we learn how to install usbredir on CentOS 7. usbredir is USB network redirection protocol libraries

Introduction

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

What is usbredir

The usbredir libraries allow USB devices to be used on remote and/or virtual hosts over TCP. The following libraries are provided usbredirparser A library containing the parser for the usbredir protocol usbredirhost A library implementing the USB host side of a usbredir connection. All that an application wishing to implement a USB host needs to do is * Provide a libusb device handle for the device * Provide write and read callbacks for the actual transport of usbredir data * Monitor for usbredir and libusb read/write events and call their handlers The usbredir libraries allow USB devices to be used on remote and/or virtual hosts over TCP. The following libraries are provided usbredirparser A library containing the parser for the usbredir protocol usbredirhost A library implementing the USB host side of a usbredir connection. All that an application wishing to implement a USB host needs to do is * Provide a libusb device handle for the device * Provide write and read callbacks for the actual transport of usbredir data * Monitor for usbredir and libusb read/write events and call their handlers

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

Install usbredir on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install usbredir

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

sudo dnf -y install usbredir

How To Uninstall usbredir on CentOS 7

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

sudo dnf remove usbredir

References

Summary

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