How To Install usbguard on Rocky Linux 8

In this tutorial we learn how to install usbguard on Rocky Linux 8. usbguard is A tool for implementing USB device usage policy

Introduction

In this tutorial we learn how to install usbguard on Rocky Linux 8.

What is usbguard

The USBGuard software framework helps to protect your computer against rogue USB devices by implementing basic whitelisting/blacklisting capabilities based on USB device attributes.

We can use yum or dnf to install usbguard on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install usbguard.

Install usbguard on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install usbguard

Install usbguard on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install usbguard

How To Uninstall usbguard on Rocky Linux 8

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

sudo dnf remove usbguard

usbguard Package Contents on Rocky Linux 8

/etc/usbguard
/etc/usbguard/IPCAccessControl.d
/etc/usbguard/rules.conf
/etc/usbguard/rules.d
/etc/usbguard/usbguard-daemon.conf
/usr/bin/usbguard
/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/6d5f8e6b1d8cf605ee812fa45e1ab76be7b28e
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/5226967a302a661714f2cb24fbd3d89c151768
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/78bcc8ac1eff338be908086964e3b43187e755
/usr/lib/systemd/system/usbguard.service
/usr/lib64/libusbguard.so.1
/usr/lib64/libusbguard.so.1.0.0
/usr/sbin/usbguard-daemon
/usr/share/bash-completion/completions/usbguard
/usr/share/doc/usbguard
/usr/share/doc/usbguard/CHANGELOG.md
/usr/share/doc/usbguard/README.adoc
/usr/share/licenses/usbguard
/usr/share/licenses/usbguard/LICENSE
/usr/share/man/man1/usbguard.1.gz
/usr/share/man/man5/usbguard-daemon.conf.5.gz
/usr/share/man/man5/usbguard-rules.conf.5.gz
/usr/share/man/man8/usbguard-daemon.8.gz
/var/log/usbguard
/etc/usbguard
/etc/usbguard/IPCAccessControl.d
/etc/usbguard/rules.conf
/etc/usbguard/rules.d
/etc/usbguard/usbguard-daemon.conf
/usr/bin/usbguard
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/54914c8fde45dfee0620d9517681f5b32bf756
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/ab4d31e857377e9da3c5e565e3ebe941713dda
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/81e38786faaefdf37bd86dddb022f1d92baffb
/usr/lib/libusbguard.so.1
/usr/lib/libusbguard.so.1.0.0
/usr/lib/systemd/system/usbguard.service
/usr/sbin/usbguard-daemon
/usr/share/bash-completion/completions/usbguard
/usr/share/doc/usbguard
/usr/share/doc/usbguard/CHANGELOG.md
/usr/share/doc/usbguard/README.adoc
/usr/share/licenses/usbguard
/usr/share/licenses/usbguard/LICENSE
/usr/share/man/man1/usbguard.1.gz
/usr/share/man/man5/usbguard-daemon.conf.5.gz
/usr/share/man/man5/usbguard-rules.conf.5.gz
/usr/share/man/man8/usbguard-daemon.8.gz
/var/log/usbguard

References

Summary

In this tutorial we learn how to install usbguard on Rocky Linux 8 using yum and dnf.