How To Install php-pecl-selinux on Fedora 36
Introduction
In this tutorial we learn how to install php-pecl-selinux
on Fedora 36.
What is php-pecl-selinux
This package is an extension to the PHP Hypertext Preprocessor. It wraps the libselinux library and provides a set of interfaces to the PHP runtime engine. The libselinux is a set of application program interfaces towards in-kernel SELinux, contains get/set security context, communicate security server, translate between raw and readable format and so on.
We can use yum
or dnf
to install php-pecl-selinux
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-selinux.
Install php-pecl-selinux 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 php-pecl-selinux
using dnf
by running the following command:
sudo dnf -y install php-pecl-selinux
Install php-pecl-selinux 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 php-pecl-selinux
using yum
by running the following command:
sudo yum -y install php-pecl-selinux
How To Uninstall php-pecl-selinux on Fedora 36
To uninstall only the php-pecl-selinux
package we can use the following command:
sudo dnf remove php-pecl-selinux
php-pecl-selinux Package Contents on Fedora 36
/etc/php-zts.d/40-selinux.ini
/etc/php.d/40-selinux.ini
/usr/lib/.build-id
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/37a655102ec3ee1d643a472f4f2ee262527fed
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/6b40d14819aa8652472e7c83b19350521d83b8
/usr/lib64/php-zts/modules/selinux.so
/usr/lib64/php/modules/selinux.so
/usr/share/doc/pecl/selinux
/usr/share/doc/pecl/selinux/README
/usr/share/licenses/php-pecl-selinux
/usr/share/licenses/php-pecl-selinux/LICENSE
/var/lib/php/peclxml/php-pecl-selinux.xml
References
Summary
In this tutorial we learn how to install php-pecl-selinux
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).