How To Install libcap on Fedora 36
Introduction
In this tutorial we learn how to install libcap
on Fedora 36.
What is libcap
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.
We can use yum
or dnf
to install libcap
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libcap.
Install libcap 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
using dnf
by running the following command:
sudo dnf -y install libcap
Install libcap 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
using yum
by running the following command:
sudo yum -y install libcap
How To Uninstall libcap on Fedora 36
To uninstall only the libcap
package we can use the following command:
sudo dnf remove libcap
libcap Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/c9ea0937a5ca054e8954003b4006ab4aeb2aaa
/usr/lib/.build-id/55
/usr/lib/.build-id/55/b559bb528afd00b0ceec05640eb7ce05f013a8
/usr/lib/.build-id/68
/usr/lib/.build-id/68/30cc0f315f94d3fd1c3c8dc950153e556a33d6
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/c2268e15dd360599e3a75e359cd6236842583b
/usr/lib/.build-id/81
/usr/lib/.build-id/81/51f8e85efe93ca9e9e59035e3f0c13523291b9
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/5afea9791b3d2de09d02a94f00c74b03cef74e
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/0a465089d8be8e37e4f23b99de486dfc807863
/usr/lib64/libcap.so.2
/usr/lib64/libcap.so.2.48
/usr/lib64/libpsx.so.2
/usr/lib64/libpsx.so.2.48
/usr/lib64/security/pam_cap.so
/usr/sbin/capsh
/usr/sbin/getcap
/usr/sbin/getpcaps
/usr/sbin/setcap
/usr/share/doc/libcap
/usr/share/doc/libcap/capability.notes
/usr/share/licenses/libcap
/usr/share/licenses/libcap/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
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).