How To Install usbguard on Fedora 34
Introduction
In this tutorial we learn how to install usbguard
on Fedora 34.
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. usbguard 1.0.0 4.fc34 x86_64 477 k usbguard-1.0.0-4.fc34.src.rpm fedora A tool for implementing USB device usage policy https GPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install usbguard.
Install usbguard 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 usbguard
using dnf
by running the following command:
sudo dnf -y install usbguard
Install usbguard 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 usbguard
using yum
by running the following command:
sudo yum -y install usbguard
How To Uninstall usbguard on Fedora 34
To uninstall only the usbguard
package we can use the following command:
sudo dnf remove usbguard
usbguard Package Contents on Fedora 34
/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/56
/usr/lib/.build-id/56/666a0b24ca93d50c12588997fab789d0cd4368
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/e20501ac5538ae8691c3dcdd621e2eaeddff62
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/9a95eaca02823286bc05cb12f7753eac582de5
/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
/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/5f
/usr/lib/.build-id/5f/52a10f57272e10f97f67b6280977301beb8ca1
/usr/lib/.build-id/62
/usr/lib/.build-id/62/5b4c39b64100a6ca0f13d2b758e4cc68696980
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/6ef56f5db6dd875a755b6d6d20a913ced7e94a
/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
References
- [usbguard website](https://usbguard.github.io/ https://usbguard.github.io/)
Summary
In this tutorial we learn how to install usbguard
on Fedora 34 using yum and dnf.