How To Install php-pecl-yac on CentOS 7
Introduction
In this tutorial we learn how to install php-pecl-yac on CentOS 7.
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 CentOS 7. 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 CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install php-pecl-yac using yum by running the following command:
sudo yum -y install php-pecl-yac
Install php-pecl-yac on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install php-pecl-yac using dnf by running the following command:
sudo dnf -y install php-pecl-yac
How To Uninstall php-pecl-yac on CentOS 7
To uninstall only the php-pecl-yac package we can use the following command:
sudo dnf remove php-pecl-yac
References
Summary
In this tutorial we learn how to install php-pecl-yac on CentOS 7 using yum and dnf.