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

In this tutorial we learn how to install device-mapper-devel.x86_64 in Amazon Linux 2. device-mapper-devel.x86_64 is Development libraries and headers for device-mapper

Introduction

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

What is device-mapper-devel.x86_64

This package contains files needed to develop applications that use the device-mapper libraries.

We can use yum to install device-mapper-devel.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-devel.x86_64.

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

sudo yum -y install device-mapper-devel.x86_64

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

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

sudo yum remove device-mapper-devel.x86_64

device-mapper-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/libdevmapper.h
/usr/lib64/libdevmapper.so
/usr/lib64/pkgconfig/devmapper.pc

References

Summary

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