How To Install device-mapper.x86_64 on Amazon Linux 2

In this tutorial we learn how to install device-mapper.x86_64 in Amazon Linux 2. device-mapper.x86_64 is Device mapper utility

Introduction

In this tutorial we learn how to install device-mapper.x86_64 on Amazon Linux 2.

What is device-mapper.x86_64

This package contains the supporting userspace utility, dmsetup, for the kernel device-mapper.

We can use yum to install device-mapper.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install device-mapper.x86_64.

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

sudo yum -y install device-mapper.x86_64

How To Uninstall device-mapper.x86_64 on Amazon Linux 2

To uninstall only the device-mapper.x86_64 package we can use the following command:

sudo yum remove device-mapper.x86_64

device-mapper.x86_64 Package Contents on Amazon Linux 2

/usr/lib/systemd/system/blk-availability.service
/usr/lib/udev/rules.d/10-dm.rules
/usr/lib/udev/rules.d/13-dm-disk.rules
/usr/lib/udev/rules.d/95-dm-notify.rules
/usr/sbin/blkdeactivate
/usr/sbin/dmfilemapd
/usr/sbin/dmsetup
/usr/sbin/dmstats
/usr/share/doc/device-mapper-1.02.170
/usr/share/doc/device-mapper-1.02.170/12-dm-permissions.rules
/usr/share/doc/device-mapper-1.02.170/COPYING
/usr/share/doc/device-mapper-1.02.170/COPYING.LIB
/usr/share/doc/device-mapper-1.02.170/INSTALL
/usr/share/doc/device-mapper-1.02.170/README
/usr/share/doc/device-mapper-1.02.170/VERSION_DM
/usr/share/doc/device-mapper-1.02.170/WHATS_NEW_DM
/usr/share/man/man8/blkdeactivate.8.gz
/usr/share/man/man8/dmfilemapd.8.gz
/usr/share/man/man8/dmsetup.8.gz
/usr/share/man/man8/dmstats.8.gz

References

Summary

In this tutorial we learn how to install device-mapper.x86_64 on Amazon Linux 2 using yum.