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

In this tutorial we learn how to install libpmem-devel.x86_64 in Amazon Linux 2. libpmem-devel.x86_64 is Development files for the low-level persistent memory library

Introduction

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

What is libpmem-devel.x86_64

The libpmem provides low level persistent memory support. In particular, support for the persistent memory instructions for flushing changes to pmem is provided. This library is provided for software which tracks every store to pmem and needs to flush those changes to durability. Most developers will find higher level libraries like libpmemobj to be much more convenient.

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

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

sudo yum -y install libpmem-devel.x86_64

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

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

sudo yum remove libpmem-devel.x86_64

libpmem-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/libpmem.h
/usr/lib64/libpmem.so
/usr/lib64/pkgconfig/libpmem.pc
/usr/share/doc/libpmem-devel-1.3
/usr/share/doc/libpmem-devel-1.3/CONTRIBUTING.md
/usr/share/doc/libpmem-devel-1.3/ChangeLog
/usr/share/doc/libpmem-devel-1.3/README.md
/usr/share/licenses/libpmem-devel-1.3
/usr/share/licenses/libpmem-devel-1.3/LICENSE
/usr/share/man/man3/libpmem.3.gz

References

Summary

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