How To Install php-pecl-var-representation on Fedora 36

In this tutorial we learn how to install php-pecl-var-representation in Fedora 36. php-pecl-var-representation is var_representation extension

Introduction

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

What is php-pecl-var-representation

var_representation is a compact alternative to var_export that properly escapes control characters.

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

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

sudo dnf -y install php-pecl-var-representation

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

sudo yum -y install php-pecl-var-representation

How To Uninstall php-pecl-var-representation on Fedora 36

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

sudo dnf remove php-pecl-var-representation

php-pecl-var-representation Package Contents on Fedora 36

/etc/php-zts.d/40-var_representation.ini
/etc/php.d/40-var_representation.ini
/usr/lib/.build-id
/usr/lib/.build-id/93
/usr/lib/.build-id/93/faa80de5a8054b96f558b4821ea50a4b567fac
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/eb2e6a347de7768af4db4cf7b8d050d30d7ef6
/usr/lib64/php-zts/modules/var_representation.so
/usr/lib64/php/modules/var_representation.so
/usr/share/doc/pecl/var_representation
/usr/share/doc/pecl/var_representation/README.md
/usr/share/licenses/php-pecl-var-representation
/usr/share/licenses/php-pecl-var-representation/COPYING
/var/lib/php/peclxml/php-pecl-var-representation.xml

References

Summary

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