How To Install libselinux-devel on AlmaLinux 8
Introduction
In this tutorial we learn how to install libselinux-devel on AlmaLinux 8.
What is libselinux-devel
The libselinux-devel package contains the libraries and header files needed for developing SELinux applications.
We can use yum or dnf to install libselinux-devel on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libselinux-devel.
Install libselinux-devel on AlmaLinux 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libselinux-devel using dnf by running the following command:
sudo dnf -y install libselinux-devel
Install libselinux-devel on AlmaLinux 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libselinux-devel using yum by running the following command:
sudo yum -y install libselinux-devel
How To Uninstall libselinux-devel on AlmaLinux 8
To uninstall only the libselinux-devel package we can use the following command:
sudo dnf remove libselinux-devel
References
Summary
In this tutorial we learn how to install libselinux-devel on AlmaLinux 8 using yum and dnf.