How To Install php-phpseclib-crypt-rsa on Fedora 36

In this tutorial we learn how to install php-phpseclib-crypt-rsa in Fedora 36. php-phpseclib-crypt-rsa is Pure-PHP PKCS#1 (v2.1) compliant implementation of RSA

Introduction

In this tutorial we learn how to install php-phpseclib-crypt-rsa on Fedora 36.

What is php-phpseclib-crypt-rsa

Pure-PHP PKCS#1 (v2.1) compliant implementation of RSA. Optionally uses openssl.

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

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

sudo dnf -y install php-phpseclib-crypt-rsa

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

sudo yum -y install php-phpseclib-crypt-rsa

How To Uninstall php-phpseclib-crypt-rsa on Fedora 36

To uninstall only the php-phpseclib-crypt-rsa package we can use the following command:

sudo dnf remove php-phpseclib-crypt-rsa

php-phpseclib-crypt-rsa Package Contents on Fedora 36

/etc/pear/Crypt_RSA
/etc/pear/Crypt_RSA/openssl.cnf
/usr/share/pear/Crypt/RSA.php
/var/lib/pear/pkgxml/php-phpseclib-crypt-rsa.xml

References

Summary

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