How To Install libcap on Fedora 34
Introduction
In this tutorial we learn how to install libcap on Fedora 34.
What is libcap
libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities. libcap 2.48 2.fc34 i686 69 k libcap-2.48-2.fc34.src.rpm fedora Library for getting and setting POSIX.1e capabilities https BSD or GPLv2 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install libcap.
Install libcap on Fedora 34 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install libcap using dnf by running the following command:
sudo dnf -y install libcap
Install libcap on Fedora 34 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the libcap package we can use the following command:
sudo dnf remove libcap
libcap Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/4bc6aa155343453df6b681fd24fdfb6cf648c6
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/82d66eb88fda588f8fadfbfcadf226bfa5c4a1
/usr/lib/.build-id/51
/usr/lib/.build-id/51/2e65cbd7b9e41715f4f5658ad0cea9568cdcc0
/usr/lib/.build-id/80
/usr/lib/.build-id/80/b1ff034dc9634d39cdd7b2a880c4b359fc0a38
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/2347291bacdf6ba6283ddec1918874e9e7c95b
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/ee9c38922d4ba113d6a5a691951ead2235c86e
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/9989af063bafc1422d275f2bfbf53a53b60030
/usr/lib/libcap.so.2
/usr/lib/libcap.so.2.48
/usr/lib/libpsx.so.2
/usr/lib/libpsx.so.2.48
/usr/lib/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
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/48b7eb7f60b7a4be1dd0fcbf14a783557f8c68
/usr/lib/.build-id/24
/usr/lib/.build-id/24/8b4283d5667e61870ed26021234e18d5554cbc
/usr/lib/.build-id/37
/usr/lib/.build-id/37/bd1af8c1351b12ed85ca6f93fe45b5d1621283
/usr/lib/.build-id/91
/usr/lib/.build-id/91/9d4cc947b5425750d1cb61ff09f7aa3adadb20
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/5550c97a3b2880d505491f56384457840c158b
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/642fc0a0d9df174ea05bbf6a9c75a9c004a511
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/59f631d0b630b31da0903992c6b401108c1bb9
/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
- [libcap website](https://sites.google.com/site/fullycapable/ https://sites.google.com/site/fullycapable/)
Summary
In this tutorial we learn how to install libcap on Fedora 34 using yum and dnf.