How To Install device-mapper-persistent-data on AlmaLinux 8

In this tutorial we learn how to install device-mapper-persistent-data in AlmaLinux 8. device-mapper-persistent-data is Device-mapper Persistent Data Tools

Introduction

In this tutorial we learn how to install device-mapper-persistent-data on AlmaLinux 8.

What is device-mapper-persistent-data

thin-provisioning-tools contains check,dump,restore,repair,rmap and metadata_size tools to manage device-mapper thin provisioning target metadata devices; cache check,dump,metadata_size,restore and repair tools to manage device-mapper cache metadata devices are included and era check, dump, restore and invalidate to manage snapshot eras

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

Install device-mapper-persistent-data 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 device-mapper-persistent-data using dnf by running the following command:

sudo dnf -y install device-mapper-persistent-data

Install device-mapper-persistent-data 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 device-mapper-persistent-data using yum by running the following command:

sudo yum -y install device-mapper-persistent-data

How To Uninstall device-mapper-persistent-data on AlmaLinux 8

To uninstall only the device-mapper-persistent-data package we can use the following command:

sudo dnf remove device-mapper-persistent-data

References

Summary

In this tutorial we learn how to install device-mapper-persistent-data on AlmaLinux 8 using yum and dnf.