How To Install libcap-devel on Rocky Linux 8
Introduction
In this tutorial we learn how to install libcap-devel
on Rocky Linux 8.
What is libcap-devel
Development files (Headers, etc) for libcap. libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities. Install libcap-devel if you want to develop or compile applications using libcap.
We can use yum
or dnf
to install libcap-devel
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libcap-devel.
Install libcap-devel 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-devel
using dnf
by running the following command:
sudo dnf -y install libcap-devel
Install libcap-devel 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-devel
using yum
by running the following command:
sudo yum -y install libcap-devel
How To Uninstall libcap-devel on Rocky Linux 8
To uninstall only the libcap-devel
package we can use the following command:
sudo dnf remove libcap-devel
libcap-devel Package Contents on Rocky Linux 8
/usr/include/sys
/usr/include/sys/capability.h
/usr/lib/libcap.so
/usr/lib/pkgconfig/libcap.pc
/usr/share/man/man3/cap_clear.3.gz
/usr/share/man/man3/cap_clear_flag.3.gz
/usr/share/man/man3/cap_compare.3.gz
/usr/share/man/man3/cap_copy_ext.3.gz
/usr/share/man/man3/cap_copy_int.3.gz
/usr/share/man/man3/cap_drop_bound.3.gz
/usr/share/man/man3/cap_dup.3.gz
/usr/share/man/man3/cap_free.3.gz
/usr/share/man/man3/cap_from_name.3.gz
/usr/share/man/man3/cap_from_text.3.gz
/usr/share/man/man3/cap_get_ambient.3.gz
/usr/share/man/man3/cap_get_bound.3.gz
/usr/share/man/man3/cap_get_fd.3.gz
/usr/share/man/man3/cap_get_file.3.gz
/usr/share/man/man3/cap_get_flag.3.gz
/usr/share/man/man3/cap_get_pid.3.gz
/usr/share/man/man3/cap_get_proc.3.gz
/usr/share/man/man3/cap_init.3.gz
/usr/share/man/man3/cap_reset_ambient.3.gz
/usr/share/man/man3/cap_set_ambient.3.gz
/usr/share/man/man3/cap_set_fd.3.gz
/usr/share/man/man3/cap_set_file.3.gz
/usr/share/man/man3/cap_set_flag.3.gz
/usr/share/man/man3/cap_set_proc.3.gz
/usr/share/man/man3/cap_size.3.gz
/usr/share/man/man3/cap_to_name.3.gz
/usr/share/man/man3/cap_to_text.3.gz
/usr/share/man/man3/capgetp.3.gz
/usr/share/man/man3/capsetp.3.gz
/usr/share/man/man3/libcap.3.gz
/usr/include/sys
/usr/include/sys/capability.h
/usr/lib64/libcap.so
/usr/lib64/pkgconfig/libcap.pc
/usr/share/man/man3/cap_clear.3.gz
/usr/share/man/man3/cap_clear_flag.3.gz
/usr/share/man/man3/cap_compare.3.gz
/usr/share/man/man3/cap_copy_ext.3.gz
/usr/share/man/man3/cap_copy_int.3.gz
/usr/share/man/man3/cap_drop_bound.3.gz
/usr/share/man/man3/cap_dup.3.gz
/usr/share/man/man3/cap_free.3.gz
/usr/share/man/man3/cap_from_name.3.gz
/usr/share/man/man3/cap_from_text.3.gz
/usr/share/man/man3/cap_get_ambient.3.gz
/usr/share/man/man3/cap_get_bound.3.gz
/usr/share/man/man3/cap_get_fd.3.gz
/usr/share/man/man3/cap_get_file.3.gz
/usr/share/man/man3/cap_get_flag.3.gz
/usr/share/man/man3/cap_get_pid.3.gz
/usr/share/man/man3/cap_get_proc.3.gz
/usr/share/man/man3/cap_init.3.gz
/usr/share/man/man3/cap_reset_ambient.3.gz
/usr/share/man/man3/cap_set_ambient.3.gz
/usr/share/man/man3/cap_set_fd.3.gz
/usr/share/man/man3/cap_set_file.3.gz
/usr/share/man/man3/cap_set_flag.3.gz
/usr/share/man/man3/cap_set_proc.3.gz
/usr/share/man/man3/cap_size.3.gz
/usr/share/man/man3/cap_to_name.3.gz
/usr/share/man/man3/cap_to_text.3.gz
/usr/share/man/man3/capgetp.3.gz
/usr/share/man/man3/capsetp.3.gz
/usr/share/man/man3/libcap.3.gz
References
Summary
In this tutorial we learn how to install libcap-devel
on Rocky Linux 8 using yum and dnf.