How To Install php-phpiredis on Fedora 36

In this tutorial we learn how to install php-phpiredis in Fedora 36. php-phpiredis is Client extension for Redis

Introduction

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

What is php-phpiredis

Phpiredis is an extension for PHP based on hiredis that provides a simple and efficient client for Redis and a fast incremental parser / serializer for the RESP protocol.

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

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

sudo dnf -y install php-phpiredis

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

sudo yum -y install php-phpiredis

How To Uninstall php-phpiredis on Fedora 36

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

sudo dnf remove php-phpiredis

php-phpiredis Package Contents on Fedora 36

/etc/php-zts.d/40-phpiredis.ini
/etc/php.d/40-phpiredis.ini
/usr/lib/.build-id
/usr/lib/.build-id/18
/usr/lib/.build-id/18/1ac38b6018b62b49744891b79290afdb13bef5
/usr/lib/.build-id/32
/usr/lib/.build-id/32/156d07c9ecc83af887f7da7303bb221b7dd824
/usr/lib64/php-zts/modules/phpiredis.so
/usr/lib64/php/modules/phpiredis.so
/usr/share/doc/php-phpiredis
/usr/share/doc/php-phpiredis/README.md
/usr/share/licenses/php-phpiredis
/usr/share/licenses/php-phpiredis/LICENSE

References

Summary

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