How To Install usbsniff on Fedora 34

usbsniff is USB traffic capture and replay tools

Introduction

In this tutorial we learn how to install usbsniff on Fedora 34.

What is usbsniff

Tools to capture USB traffic, store the capture results and replay them against the device. Useful for debugging USB devices or reverse-engineering protocols.

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

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

sudo dnf -y install usbsniff

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

sudo yum -y install usbsniff

How To Uninstall usbsniff on Fedora 34

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

sudo dnf remove usbsniff

usbsniff Package Contents on Fedora 34

/usr/bin/usb_capture
/usr/bin/usb_detach
/usr/bin/usb_replay
/usr/bin/usb_reset
/usr/lib/.build-id
/usr/lib/.build-id/46
/usr/lib/.build-id/46/06cc7425332ee2a6d781c42c600a7efe775b48
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/8168f0e2eee6d4466ac1c80bce74b742b0b86c
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/72da029d95b88b8f18709d110c014e58cff2b0
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/20836a124ffc2471bce02345301d2d4f322b4a
/usr/share/doc/usbsniff
/usr/share/doc/usbsniff/LICENSE
/usr/share/doc/usbsniff/README.md

References

Summary

In this tutorial we learn how to install usbsniff on Fedora 34 using yum and dnf.