How To Install device-mapper-persistent-data on CentOS 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 CentOS 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 CentOS 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 CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove device-mapper-persistent-data

device-mapper-persistent-data Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/1a1ae8f79da6fbc09e84ce325b940b5f3ef3df
/usr/sbin/cache_check
/usr/sbin/cache_dump
/usr/sbin/cache_metadata_size
/usr/sbin/cache_repair
/usr/sbin/cache_restore
/usr/sbin/cache_writeback
/usr/sbin/era_check
/usr/sbin/era_dump
/usr/sbin/era_invalidate
/usr/sbin/era_restore
/usr/sbin/pdata_tools
/usr/sbin/thin_check
/usr/sbin/thin_delta
/usr/sbin/thin_dump
/usr/sbin/thin_ls
/usr/sbin/thin_metadata_size
/usr/sbin/thin_repair
/usr/sbin/thin_restore
/usr/sbin/thin_rmap
/usr/sbin/thin_trim
/usr/share/doc/device-mapper-persistent-data
/usr/share/doc/device-mapper-persistent-data/COPYING
/usr/share/doc/device-mapper-persistent-data/README.md
/usr/share/man/man8/cache_check.8.gz
/usr/share/man/man8/cache_dump.8.gz
/usr/share/man/man8/cache_metadata_size.8.gz
/usr/share/man/man8/cache_repair.8.gz
/usr/share/man/man8/cache_restore.8.gz
/usr/share/man/man8/cache_writeback.8.gz
/usr/share/man/man8/era_check.8.gz
/usr/share/man/man8/era_dump.8.gz
/usr/share/man/man8/era_invalidate.8.gz
/usr/share/man/man8/era_restore.8.gz
/usr/share/man/man8/thin_check.8.gz
/usr/share/man/man8/thin_delta.8.gz
/usr/share/man/man8/thin_dump.8.gz
/usr/share/man/man8/thin_ls.8.gz
/usr/share/man/man8/thin_metadata_size.8.gz
/usr/share/man/man8/thin_repair.8.gz
/usr/share/man/man8/thin_restore.8.gz
/usr/share/man/man8/thin_rmap.8.gz
/usr/share/man/man8/thin_trim.8.gz

References

Summary

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