How To Install usbredir on CentOS 8

usbredir is USB network redirection protocol libraries USB network redirection protocol libraries

Introduction

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

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 usbredir 0.8.0 1.el8 x86_64 50 k usbredir-0.8.0-1.el8.src.rpm appstream USB network redirection protocol libraries http LGPLv2+ 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 8. In this tutorial we discuss both methods but you only need to choose one of method to install usbredir.

Install usbredir on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install usbredir

Install usbredir on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install usbredir

How To Uninstall usbredir on CentOS 8

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

sudo dnf remove usbredir

usbredir Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/52525d125e8a1253ca1a3ff2b5c9b52defdec0
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/4b75049a4f042db9581e983d674878004ba8b4
/usr/lib64/libusbredirhost.so.1
/usr/lib64/libusbredirhost.so.1.0.1
/usr/lib64/libusbredirparser.so.1
/usr/lib64/libusbredirparser.so.1.0.1
/usr/share/licenses/usbredir
/usr/share/licenses/usbredir/COPYING.LIB
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/624bc338436cace1b76875338a6411287837bd
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/3d4c10d38f15322c27cbe2a381e28e766b7d15
/usr/lib/libusbredirhost.so.1
/usr/lib/libusbredirhost.so.1.0.1
/usr/lib/libusbredirparser.so.1
/usr/lib/libusbredirparser.so.1.0.1
/usr/share/licenses/usbredir
/usr/share/licenses/usbredir/COPYING.LIB

References

Summary

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