How To Install libusb on Fedora 34
Introduction
In this tutorial we learn how to install libusb
on Fedora 34.
What is libusb
This package provides a shim / compatibility layer on top of libusb-1.0 offering the old 0.1 API for applications which do not have been ported to the new 1.0 API yet. Where ever possible applications really should use and / or be ported to the new 1.0 API instead of relying on this compatibility library. libusb 1 0.1.7 3.fc34 x86_64 30 k libusb-0.1.7-3.fc34.src.rpm fedora Compatibility shim around libusb-1.0 offering the old 0.1 API https LGPLv2+ This package provides a shim / compatibility layer on top of libusb-1.0 offering the old 0.1 API for applications which do not have been ported to the new 1.0 API yet. Where ever possible applications really should use and / or be ported to the new 1.0 API instead of relying on this compatibility library.
We can use yum
or dnf
to install libusb
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libusb.
Install libusb on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install libusb
using dnf
by running the following command:
sudo dnf -y install libusb
Install libusb on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install libusb
using yum
by running the following command:
sudo yum -y install libusb
How To Uninstall libusb on Fedora 34
To uninstall only the libusb
package we can use the following command:
sudo dnf remove libusb
libusb Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/80
/usr/lib/.build-id/80/de2c5911aa0b3e9d1c1c90ba2ec259a4d3a61f
/usr/lib64/libusb-0.1.so.4
/usr/lib64/libusb-0.1.so.4.4.4
/usr/share/doc/libusb
/usr/share/doc/libusb/AUTHORS
/usr/share/doc/libusb/NEWS
/usr/share/doc/libusb/README
/usr/share/licenses/libusb
/usr/share/licenses/libusb/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/4470a6970785dbe86c587742f4a03b40ab239c
/usr/lib/libusb-0.1.so.4
/usr/lib/libusb-0.1.so.4.4.4
/usr/share/doc/libusb
/usr/share/doc/libusb/AUTHORS
/usr/share/doc/libusb/NEWS
/usr/share/doc/libusb/README
/usr/share/licenses/libusb
/usr/share/licenses/libusb/COPYING
References
- [libusb website](https://github.com/libusb/libusb-compat-0.1 https://github.com/libusb/libusb-compat-0.1)
Summary
In this tutorial we learn how to install libusb
on Fedora 34 using yum and dnf.