How To Install php-pecl-mcrypt on Fedora 36

In this tutorial we learn how to install php-pecl-mcrypt in Fedora 36. php-pecl-mcrypt is Bindings for the libmcrypt library

Introduction

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

What is php-pecl-mcrypt

Provides bindings for the unmaintained libmcrypt.

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

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

sudo dnf -y install php-pecl-mcrypt

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

sudo yum -y install php-pecl-mcrypt

How To Uninstall php-pecl-mcrypt on Fedora 36

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

sudo dnf remove php-pecl-mcrypt

php-pecl-mcrypt Package Contents on Fedora 36

/etc/php-zts.d/30-mcrypt.ini
/etc/php.d/30-mcrypt.ini
/usr/lib/.build-id
/usr/lib/.build-id/98
/usr/lib/.build-id/98/557c953744c18e51aea7b53e4cda71438bfe83
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/ece639a8be2b35c84f4de8c5b0a3eecd9e30a7
/usr/lib64/php-zts/modules/mcrypt.so
/usr/lib64/php/modules/mcrypt.so
/usr/share/licenses/php-pecl-mcrypt
/usr/share/licenses/php-pecl-mcrypt/LICENSE
/var/lib/php/peclxml/php-pecl-mcrypt.xml

References

Summary

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