How To Install php-pear-Net-IDNA2 on Fedora 36

In this tutorial we learn how to install php-pear-Net-IDNA2 in Fedora 36. php-pear-Net-IDNA2 is PHP library for punycode encoding and decoding

Introduction

In this tutorial we learn how to install php-pear-Net-IDNA2 on Fedora 36.

What is php-pear-Net-IDNA2

This package helps you to encode and decode punycode strings easily in PHP.

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

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

sudo dnf -y install php-pear-Net-IDNA2

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

sudo yum -y install php-pear-Net-IDNA2

How To Uninstall php-pear-Net-IDNA2 on Fedora 36

To uninstall only the php-pear-Net-IDNA2 package we can use the following command:

sudo dnf remove php-pear-Net-IDNA2

php-pear-Net-IDNA2 Package Contents on Fedora 36

/usr/share/pear/Net
/usr/share/pear/Net/IDNA2
/usr/share/pear/Net/IDNA2.php
/usr/share/pear/Net/IDNA2/Exception
/usr/share/pear/Net/IDNA2/Exception.php
/usr/share/pear/Net/IDNA2/Exception/Nameprep.php
/usr/share/tests/pear/Net_IDNA2
/usr/share/tests/pear/Net_IDNA2/tests
/usr/share/tests/pear/Net_IDNA2/tests/Net_IDNA2Test.php
/usr/share/tests/pear/Net_IDNA2/tests/draft-josefsson-idn-test-vectors.php
/var/lib/pear/pkgxml/php-pear-Net-IDNA2.xml

References

Summary

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