How To Install libblockdev.i686 on Amazon Linux 2

In this tutorial we learn how to install libblockdev.i686 in Amazon Linux 2. libblockdev.i686 is A library for low-level manipulation with block devices

Introduction

In this tutorial we learn how to install libblockdev.i686 on Amazon Linux 2.

What is libblockdev.i686

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 to install libblockdev.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libblockdev.i686.

Install libblockdev.i686 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libblockdev.i686 using yum by running the following command:

sudo yum -y install libblockdev.i686

How To Uninstall libblockdev.i686 on Amazon Linux 2

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

sudo yum remove libblockdev.i686

libblockdev.i686 Package Contents on Amazon Linux 2

/etc/libblockdev
/etc/libblockdev/conf.d
/etc/libblockdev/conf.d/00-default.cfg
/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-2.18
/usr/share/licenses/libblockdev-2.18/LICENSE

References

Summary

In this tutorial we learn how to install libblockdev.i686 on Amazon Linux 2 using yum.