How To Install php-phpspec-php-diff on Fedora 36

In this tutorial we learn how to install php-phpspec-php-diff in Fedora 36. php-phpspec-php-diff is A library for generating differences between two hashable objects

Introduction

In this tutorial we learn how to install php-phpspec-php-diff on Fedora 36.

What is php-phpspec-php-diff

A comprehensive library for generating differences between two hashable objects (strings or arrays). Generated differences can be rendered in all of the standard formats including * Unified * Context * Inline HTML * Side by Side HTML The logic behind the core of the diff engine (ie, the sequence matcher) is primarily based on the Python difflib package. The reason for doing so is primarily because of its high degree of accuracy.

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

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

sudo dnf -y install php-phpspec-php-diff

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

sudo yum -y install php-phpspec-php-diff

How To Uninstall php-phpspec-php-diff on Fedora 36

To uninstall only the php-phpspec-php-diff package we can use the following command:

sudo dnf remove php-phpspec-php-diff

php-phpspec-php-diff Package Contents on Fedora 36

/usr/share/doc/php-phpspec-php-diff
/usr/share/doc/php-phpspec-php-diff/README
/usr/share/doc/php-phpspec-php-diff/composer.json
/usr/share/doc/php-phpspec-php-diff/example
/usr/share/doc/php-phpspec-php-diff/example/a.txt
/usr/share/doc/php-phpspec-php-diff/example/b.txt
/usr/share/doc/php-phpspec-php-diff/example/example.php
/usr/share/doc/php-phpspec-php-diff/example/styles.css
/usr/share/php/phpspec
/usr/share/php/phpspec/php-diff
/usr/share/php/phpspec/php-diff/Diff
/usr/share/php/phpspec/php-diff/Diff.php
/usr/share/php/phpspec/php-diff/Diff/Renderer
/usr/share/php/phpspec/php-diff/Diff/Renderer/Abstract.php
/usr/share/php/phpspec/php-diff/Diff/Renderer/Html
/usr/share/php/phpspec/php-diff/Diff/Renderer/Html/Array.php
/usr/share/php/phpspec/php-diff/Diff/Renderer/Html/Inline.php
/usr/share/php/phpspec/php-diff/Diff/Renderer/Html/SideBySide.php
/usr/share/php/phpspec/php-diff/Diff/Renderer/Text
/usr/share/php/phpspec/php-diff/Diff/Renderer/Text/Context.php
/usr/share/php/phpspec/php-diff/Diff/Renderer/Text/Unified.php
/usr/share/php/phpspec/php-diff/Diff/SequenceMatcher.php
/usr/share/php/phpspec/php-diff/autoload.php

References

Summary

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