How To Install lvm2-devel.x86_64 on Amazon Linux 2

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

Introduction

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

What is lvm2-devel.x86_64

This package contains files needed to develop applications that use the lvm2 libraries.

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

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

sudo yum -y install lvm2-devel.x86_64

How To Uninstall lvm2-devel.x86_64 on Amazon Linux 2

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

sudo yum remove lvm2-devel.x86_64

lvm2-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/lvm2app.h
/usr/include/lvm2cmd.h
/usr/lib64/libdevmapper-event-lvm2.so
/usr/lib64/liblvm2app.so
/usr/lib64/liblvm2cmd.so
/usr/lib64/pkgconfig/lvm2app.pc

References

Summary

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