How To Install libcap.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libcap.x86_64 in Amazon Linux 2. libcap.x86_64 is Library for getting and setting POSIX.1e capabilities

Introduction

In this tutorial we learn how to install libcap.x86_64 on Amazon Linux 2.

What is libcap.x86_64

libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.

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

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

sudo yum -y install libcap.x86_64

How To Uninstall libcap.x86_64 on Amazon Linux 2

To uninstall only the libcap.x86_64 package we can use the following command:

sudo yum remove libcap.x86_64

libcap.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libcap.so.2
/usr/lib64/libcap.so.2.54
/usr/lib64/libpsx.so.2
/usr/lib64/libpsx.so.2.54
/usr/lib64/security/pam_cap.so
/usr/sbin/capsh
/usr/sbin/getcap
/usr/sbin/getpcaps
/usr/sbin/setcap
/usr/share/doc/libcap-2.54
/usr/share/doc/libcap-2.54/capability.notes
/usr/share/licenses/libcap-2.54
/usr/share/licenses/libcap-2.54/License
/usr/share/man/man1/capsh.1.gz
/usr/share/man/man8/getcap.8.gz
/usr/share/man/man8/getpcaps.8.gz
/usr/share/man/man8/setcap.8.gz

References

Summary

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