How To Install libblockdev on Fedora 34

libblockdev is A library for low-level manipulation with block devices A library for low-level manipulation with block devices

Introduction

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

What is libblockdev

The libblockdev is a C library with GObject introspection support that can be used for doing low-level operations with block devices like setting up LVM, BTRFS, LUKS or MD RAID. The library uses plugins (LVM, BTRFS,…) and serves as a thin wrapper around its plugins’ functionality. All the plugins, however, can be used as standalone libraries. One of the core principles of libblockdev is that it is stateless from the storage configuration’s perspective (e.g. it has no information about VGs when creating an LV). libblockdev 2.25 2.fc34 x86_64 93 k libblockdev-2.25-2.fc34.src.rpm fedora A library for low-level manipulation with block devices https LGPLv2+ The libblockdev is a C library with GObject introspection support that can be used for doing low-level operations with block devices like setting up LVM, BTRFS, LUKS or MD RAID. The library uses plugins (LVM, BTRFS,…) and serves as a thin wrapper around its plugins’ functionality. All the plugins, however, can be used as standalone libraries. One of the core principles of libblockdev is that it is stateless from the storage configuration’s perspective (e.g. it has no information about VGs when creating an LV).

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

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

sudo dnf -y install libblockdev

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

sudo yum -y install libblockdev

How To Uninstall libblockdev on Fedora 34

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

sudo dnf remove libblockdev

libblockdev Package Contents on Fedora 34

/etc/libblockdev
/etc/libblockdev/conf.d
/etc/libblockdev/conf.d/00-default.cfg
/usr/lib/.build-id
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/65b41f8fadf3d06129e420d90b55ff3fa5ee93
/usr/lib/girepository-1.0/BlockDev-2.0.typelib
/usr/lib/libblockdev.so.2
/usr/lib/libblockdev.so.2.0.0
/usr/share/licenses/libblockdev
/usr/share/licenses/libblockdev/LICENSE
/etc/libblockdev
/etc/libblockdev/conf.d
/etc/libblockdev/conf.d/00-default.cfg
/usr/lib/.build-id
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/b57017887ca543c1d076a9494f80c32b4930c5
/usr/lib64/girepository-1.0/BlockDev-2.0.typelib
/usr/lib64/libblockdev.so.2
/usr/lib64/libblockdev.so.2.0.0
/usr/share/licenses/libblockdev
/usr/share/licenses/libblockdev/LICENSE

References

Summary

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