How To Install compat-libcap1.x86_64 on Amazon Linux 2

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

Introduction

In this tutorial we learn how to install compat-libcap1.x86_64 on Amazon Linux 2.

What is compat-libcap1.x86_64

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

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

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

sudo yum -y install compat-libcap1.x86_64

How To Uninstall compat-libcap1.x86_64 on Amazon Linux 2

To uninstall only the compat-libcap1.x86_64 package we can use the following command:

sudo yum remove compat-libcap1.x86_64

compat-libcap1.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libcap.so.1
/usr/lib64/libcap.so.1.10
/usr/share/doc/compat-libcap1-1.10
/usr/share/doc/compat-libcap1-1.10/capability.notes
/usr/share/doc/compat-libcap1-1.10/capfaq-0.2.txt

References

Summary

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