How To Install libblkid on AlmaLinux 8

In this tutorial we learn how to install libblkid in AlmaLinux 8. libblkid is Block device ID library

Introduction

In this tutorial we learn how to install libblkid on AlmaLinux 8.

What is libblkid

This is block device identification library, part of util-linux.

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

Install libblkid on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libblkid using dnf by running the following command:

sudo dnf -y install libblkid

Install libblkid on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libblkid using yum by running the following command:

sudo yum -y install libblkid

How To Uninstall libblkid on AlmaLinux 8

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

sudo dnf remove libblkid

References

Summary

In this tutorial we learn how to install libblkid on AlmaLinux 8 using yum and dnf.