How To Install php-pecl-memcached on Fedora 36

In this tutorial we learn how to install php-pecl-memcached in Fedora 36. php-pecl-memcached is Extension to work with the Memcached caching daemon

Introduction

In this tutorial we learn how to install php-pecl-memcached on Fedora 36.

What is php-pecl-memcached

This extension uses libmemcached library to provide API for communicating with memcached servers. memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. It also provides a session handler (memcached).

We can use yum or dnf to install php-pecl-memcached on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-memcached.

Install php-pecl-memcached 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-memcached using dnf by running the following command:

sudo dnf -y install php-pecl-memcached

Install php-pecl-memcached 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-memcached using yum by running the following command:

sudo yum -y install php-pecl-memcached

How To Uninstall php-pecl-memcached on Fedora 36

To uninstall only the php-pecl-memcached package we can use the following command:

sudo dnf remove php-pecl-memcached

php-pecl-memcached Package Contents on Fedora 36

/etc/php-zts.d/50-memcached.ini
/etc/php.d/50-memcached.ini
/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/202598833eb3b66c528b73529f31421cab0240
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/f3e352a7d55298171a6b1b316597bd87b6f6ce
/usr/lib64/php-zts/modules/memcached.so
/usr/lib64/php/modules/memcached.so
/usr/share/doc/pecl/memcached
/usr/share/doc/pecl/memcached/CREDITS
/usr/share/doc/pecl/memcached/ChangeLog
/usr/share/doc/pecl/memcached/README.markdown
/usr/share/doc/pecl/memcached/memcached-api.php
/usr/share/doc/pecl/memcached/memcached.ini
/usr/share/licenses/php-pecl-memcached
/usr/share/licenses/php-pecl-memcached/LICENSE
/var/lib/php/peclxml/php-pecl-memcached.xml

References

Summary

In this tutorial we learn how to install php-pecl-memcached on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).