How To Install libblockdev on CentOS 7
Introduction
In this tutorial we learn how to install libblockdev
on CentOS 7.
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). 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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libblockdev.
Install libblockdev on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install libblockdev
using yum
by running the following command:
Install libblockdev on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install libblockdev
using dnf
by running the following command:
How To Uninstall libblockdev on CentOS 7
To uninstall only the libblockdev
package we can use the following command:
References
Summary
In this tutorial we learn how to install libblockdev
on CentOS 7 using yum
and dnf
.