How To Install libcap-ng-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libcap-ng-devel.x86_64 in Amazon Linux 2. libcap-ng-devel.x86_64 is Header files for libcap-ng library

Introduction

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

What is libcap-ng-devel.x86_64

The libcap-ng-devel package contains the files needed for developing applications that need to use the libcap-ng library.

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

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

sudo yum -y install libcap-ng-devel.x86_64

How To Uninstall libcap-ng-devel.x86_64 on Amazon Linux 2

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

sudo yum remove libcap-ng-devel.x86_64

libcap-ng-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/cap-ng.h
/usr/lib64/libcap-ng.so
/usr/lib64/pkgconfig/libcap-ng.pc
/usr/share/aclocal/cap-ng.m4
/usr/share/man/man3/capng_apply.3.gz
/usr/share/man/man3/capng_capability_to_name.3.gz
/usr/share/man/man3/capng_change_id.3.gz
/usr/share/man/man3/capng_clear.3.gz
/usr/share/man/man3/capng_fill.3.gz
/usr/share/man/man3/capng_get_caps_fd.3.gz
/usr/share/man/man3/capng_get_caps_process.3.gz
/usr/share/man/man3/capng_have_capabilities.3.gz
/usr/share/man/man3/capng_have_capability.3.gz
/usr/share/man/man3/capng_lock.3.gz
/usr/share/man/man3/capng_name_to_capability.3.gz
/usr/share/man/man3/capng_print_caps_numeric.3.gz
/usr/share/man/man3/capng_print_caps_text.3.gz
/usr/share/man/man3/capng_restore_state.3.gz
/usr/share/man/man3/capng_save_state.3.gz
/usr/share/man/man3/capng_set_caps_fd.3.gz
/usr/share/man/man3/capng_setpid.3.gz
/usr/share/man/man3/capng_update.3.gz
/usr/share/man/man3/capng_updatev.3.gz

References

Summary

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