How To Install libcap-ng on Fedora 36

In this tutorial we learn how to install libcap-ng in Fedora 36. libcap-ng is Alternate posix capabilities library

Introduction

In this tutorial we learn how to install libcap-ng on Fedora 36.

What is libcap-ng

Libcap-ng is a library that makes using posix capabilities easier

We can use yum or dnf to install libcap-ng on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libcap-ng.

Install libcap-ng on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install libcap-ng using dnf by running the following command:

sudo dnf -y install libcap-ng

Install libcap-ng on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libcap-ng using yum by running the following command:

sudo yum -y install libcap-ng

How To Uninstall libcap-ng on Fedora 36

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

sudo dnf remove libcap-ng

libcap-ng Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/75295749ad403c1f50c11ffe8f6d508ddfba7f
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/b3f10e4dad7511dae96577a8d1afd3edb7feed
/usr/lib64/libcap-ng.so.0
/usr/lib64/libcap-ng.so.0.0.0
/usr/lib64/libdrop_ambient.so.0
/usr/lib64/libdrop_ambient.so.0.0.0
/usr/share/licenses/libcap-ng
/usr/share/licenses/libcap-ng/COPYING.LIB
/usr/share/man/man7/libdrop_ambient.7.gz

References

Summary

In this tutorial we learn how to install libcap-ng on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).