How To Install php-pecl-pcov on Fedora 36

In this tutorial we learn how to install php-pecl-pcov in Fedora 36. php-pecl-pcov is Code coverage driver

Introduction

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

What is php-pecl-pcov

A self contained php-code-coverage compatible driver for PHP7.

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

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

sudo dnf -y install php-pecl-pcov

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

sudo yum -y install php-pecl-pcov

How To Uninstall php-pecl-pcov on Fedora 36

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

sudo dnf remove php-pecl-pcov

php-pecl-pcov Package Contents on Fedora 36

/etc/php-zts.d/40-pcov.ini
/etc/php.d/40-pcov.ini
/usr/lib/.build-id
/usr/lib/.build-id/93
/usr/lib/.build-id/93/63d187b69bdde45b98960c7dca8478a5bf2efd
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/971e1027e12750cc89912f6b16318856ec247a
/usr/lib64/php-zts/modules/pcov.so
/usr/lib64/php/modules/pcov.so
/usr/share/doc/pecl/pcov
/usr/share/doc/pecl/pcov/README.md
/usr/share/licenses/php-pecl-pcov
/usr/share/licenses/php-pecl-pcov/LICENSE
/var/lib/php/peclxml/php-pecl-pcov.xml

References

Summary

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