How To Install libcap-ng-utils on Rocky Linux 8

In this tutorial we learn how to install libcap-ng-utils on Rocky Linux 8. libcap-ng-utils is Utilities for analyzing and setting file capabilities

Introduction

In this tutorial we learn how to install libcap-ng-utils on Rocky Linux 8.

What is libcap-ng-utils

The libcap-ng-utils package contains applications to analyze the posix capabilities of all the program running on a system. It also lets you set the file system based capabilities.

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

Install libcap-ng-utils on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libcap-ng-utils

Install libcap-ng-utils on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libcap-ng-utils

How To Uninstall libcap-ng-utils on Rocky Linux 8

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

sudo dnf remove libcap-ng-utils

libcap-ng-utils Package Contents on Rocky Linux 8

/usr/bin/captest
/usr/bin/filecap
/usr/bin/netcap
/usr/bin/pscap
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/eccf98453256e201eeeec30fe4ec99e2e434b5
/usr/lib/.build-id/56
/usr/lib/.build-id/56/03f8a067636636921e00ccee9a4458c610c549
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/83f94623be90528a605a8c0cfb71272fb43fae
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/9bbaa6f9f33a19dbe2d47de9eaa30529678632
/usr/share/licenses/libcap-ng-utils
/usr/share/licenses/libcap-ng-utils/COPYING
/usr/share/man/man8/captest.8.gz
/usr/share/man/man8/filecap.8.gz
/usr/share/man/man8/netcap.8.gz
/usr/share/man/man8/pscap.8.gz

References

Summary

In this tutorial we learn how to install libcap-ng-utils on Rocky Linux 8 using yum and dnf.