How To Install php-pecl-redis5 on Fedora 36

In this tutorial we learn how to install php-pecl-redis5 in Fedora 36. php-pecl-redis5 is Extension for communicating with the Redis key-value store

Introduction

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

What is php-pecl-redis5

The phpredis extension provides an API for communicating with the Redis key-value store. This Redis client implements most of the latest Redis API. As method only only works when also implemented on the server side, some doesn’t work with an old redis server version.

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

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

sudo dnf -y install php-pecl-redis5

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

sudo yum -y install php-pecl-redis5

How To Uninstall php-pecl-redis5 on Fedora 36

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

sudo dnf remove php-pecl-redis5

php-pecl-redis5 Package Contents on Fedora 36

/etc/php-zts.d/50-redis.ini
/etc/php.d/50-redis.ini
/usr/lib/.build-id
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/4782ad40b973f3cca59ba9043671028ffe3057
/usr/lib/.build-id/82
/usr/lib/.build-id/82/a6168ffc08a1209350d165e184764c9ca6849a
/usr/lib64/php-zts/modules/redis.so
/usr/lib64/php/modules/redis.so
/usr/share/doc/pecl/redis
/usr/share/doc/pecl/redis/CREDITS
/usr/share/doc/pecl/redis/README.markdown
/usr/share/doc/pecl/redis/arrays.markdown
/usr/share/doc/pecl/redis/cluster.markdown
/usr/share/doc/pecl/redis/sentinel.markdown
/usr/share/licenses/php-pecl-redis5
/usr/share/licenses/php-pecl-redis5/COPYING
/var/lib/php/peclxml/php-pecl-redis5.xml

References

Summary

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