How To Install php-phpunit-environment on Fedora 36

In this tutorial we learn how to install php-phpunit-environment in Fedora 36. php-phpunit-environment is Handle HHVM/PHP environments

Introduction

In this tutorial we learn how to install php-phpunit-environment on Fedora 36.

What is php-phpunit-environment

This component provides functionality that helps writing PHP code that has runtime-specific (PHP / HHVM) execution paths.

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

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

sudo dnf -y install php-phpunit-environment

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

sudo yum -y install php-phpunit-environment

How To Uninstall php-phpunit-environment on Fedora 36

To uninstall only the php-phpunit-environment package we can use the following command:

sudo dnf remove php-phpunit-environment

php-phpunit-environment Package Contents on Fedora 36

/usr/share/doc/php-phpunit-environment
/usr/share/doc/php-phpunit-environment/README.md
/usr/share/doc/php-phpunit-environment/composer.json
/usr/share/licenses/php-phpunit-environment
/usr/share/licenses/php-phpunit-environment/LICENSE
/usr/share/php/SebastianBergmann
/usr/share/php/SebastianBergmann/Environment
/usr/share/php/SebastianBergmann/Environment/Console.php
/usr/share/php/SebastianBergmann/Environment/Runtime.php
/usr/share/php/SebastianBergmann/Environment/autoload.php

References

Summary

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