How To Install umockdev on Fedora 34

umockdev is Mock hardware devices Mock hardware devices

Introduction

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

What is umockdev

With this program and libraries you can easily create mock udev objects. This is useful for writing tests for software which talks to hardware devices. umockdev 0.16.1 1.fc34 x86_64 148 k umockdev-0.16.1-1.fc34.src.rpm updates Mock hardware devices https LGPLv2+ With this program and libraries you can easily create mock udev objects. This is useful for writing tests for software which talks to hardware devices.

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

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

sudo dnf -y install umockdev

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

sudo yum -y install umockdev

How To Uninstall umockdev on Fedora 34

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

sudo dnf remove umockdev

umockdev Package Contents on Fedora 34

/usr/bin/umockdev-record
/usr/bin/umockdev-run
/usr/bin/umockdev-wrapper
/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/2a5420e2e72808954e9f7023bd0d93d5d84cfe
/usr/lib/.build-id/61
/usr/lib/.build-id/61/7e6de292258f9312322ebadc9f81a88271a4ec
/usr/lib/.build-id/71
/usr/lib/.build-id/71/e4bb9ba6286f542ca8f6a73f952e137cc288cf
/usr/lib/.build-id/af
/usr/lib/.build-id/af/34f343fcfadc9756327ace9cd8117dfb2d91d6
/usr/lib64/girepository-1.0/UMockdev-1.0.typelib
/usr/lib64/libumockdev-preload.so
/usr/lib64/libumockdev-preload.so.0
/usr/lib64/libumockdev-preload.so.0.0.0
/usr/lib64/libumockdev.so.0
/usr/lib64/libumockdev.so.0.3.0
/usr/share/doc/umockdev
/usr/share/doc/umockdev/README.rst
/usr/share/licenses/umockdev
/usr/share/licenses/umockdev/COPYING
/usr/bin/umockdev-record
/usr/bin/umockdev-run
/usr/bin/umockdev-wrapper
/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/74f0e82ea67fdca26a65167800d9bba74c92e6
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/531a72f0f62f494154f7b037603b21c1804eda
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/ceaf70ec60d9f97dcf6c9dc1c04cd888c986d5
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/35ed93db1058cd6649d1d17ab248210a95f7f0
/usr/lib/girepository-1.0/UMockdev-1.0.typelib
/usr/lib/libumockdev-preload.so
/usr/lib/libumockdev-preload.so.0
/usr/lib/libumockdev-preload.so.0.0.0
/usr/lib/libumockdev.so.0
/usr/lib/libumockdev.so.0.3.0
/usr/share/doc/umockdev
/usr/share/doc/umockdev/README.rst
/usr/share/licenses/umockdev
/usr/share/licenses/umockdev/COPYING
/usr/bin/umockdev-record
/usr/bin/umockdev-run
/usr/bin/umockdev-wrapper
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/9093d0374febe6a8e42f77d367f86cabb666fd
/usr/lib/.build-id/47
/usr/lib/.build-id/47/b6848e146823ced5cb79792406b33ca8169ce6
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/2ffb7d53069d72e4a3a97f728dec41bdae5ba8
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/8bc45f2b83b4c4ca2cc420f40a753ad98d6ac2
/usr/lib/girepository-1.0/UMockdev-1.0.typelib
/usr/lib/libumockdev-preload.so
/usr/lib/libumockdev-preload.so.0
/usr/lib/libumockdev-preload.so.0.0.0
/usr/lib/libumockdev.so.0
/usr/lib/libumockdev.so.0.3.0
/usr/share/doc/umockdev
/usr/share/doc/umockdev/README.md
/usr/share/licenses/umockdev
/usr/share/licenses/umockdev/COPYING
/usr/bin/umockdev-record
/usr/bin/umockdev-run
/usr/bin/umockdev-wrapper
/usr/lib/.build-id
/usr/lib/.build-id/50
/usr/lib/.build-id/50/715924da874d7a6ecb32b94d2f565d2a4302a8
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/fb9f1b7bdb0eb1ee05abe2e220fed076694639
/usr/lib/.build-id/73
/usr/lib/.build-id/73/5614576acb3da3a86e3ecad98cf0d9258f075b
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/420f698d202ae56bb624168c827e8142f0db96
/usr/lib64/girepository-1.0/UMockdev-1.0.typelib
/usr/lib64/libumockdev-preload.so
/usr/lib64/libumockdev-preload.so.0
/usr/lib64/libumockdev-preload.so.0.0.0
/usr/lib64/libumockdev.so.0
/usr/lib64/libumockdev.so.0.3.0
/usr/share/doc/umockdev
/usr/share/doc/umockdev/README.md
/usr/share/licenses/umockdev
/usr/share/licenses/umockdev/COPYING

References

Summary

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