How To Install php-pecl-yac on Fedora 36
Introduction
In this tutorial we learn how to install php-pecl-yac
on Fedora 36.
What is php-pecl-yac
Yac (Yet Another Cache) is a shared memory user data cache for PHP. It can be used to replace APC or local memcached. Yac is lockless, that means, it is very fast, but there could be a chance you will get a wrong data(depends on how many key slots are allocated and how many keys are stored), so you’d better make sure that your product is not very sensitive to that.
We can use yum
or dnf
to install php-pecl-yac
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-yac.
Install php-pecl-yac 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-yac
using dnf
by running the following command:
sudo dnf -y install php-pecl-yac
Install php-pecl-yac 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-yac
using yum
by running the following command:
sudo yum -y install php-pecl-yac
How To Uninstall php-pecl-yac on Fedora 36
To uninstall only the php-pecl-yac
package we can use the following command:
sudo dnf remove php-pecl-yac
php-pecl-yac Package Contents on Fedora 36
/etc/php-zts.d/50-yac.ini
/etc/php.d/50-yac.ini
/usr/lib/.build-id
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/41e0e53d3adcda7f456d49973259b4e6eb5963
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/333f0c22ada10eb4cfc49dd6b0118cdb6e4a05
/usr/lib64/php-zts/modules/yac.so
/usr/lib64/php/modules/yac.so
/usr/share/doc/pecl/yac
/usr/share/doc/pecl/yac/CREDITS
/usr/share/licenses/php-pecl-yac
/usr/share/licenses/php-pecl-yac/LICENSE
/var/lib/php/peclxml/php-pecl-yac.xml
References
Summary
In this tutorial we learn how to install php-pecl-yac
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).