How To Install php-phpspec-php-diff on CentOS 7
Introduction
In this tutorial we learn how to install php-phpspec-php-diff
on CentOS 7.
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 CentOS 7. 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 CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-phpspec-php-diff
using yum
by running the following command:
Install php-phpspec-php-diff on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install php-phpspec-php-diff
using dnf
by running the following command:
How To Uninstall php-phpspec-php-diff on CentOS 7
To uninstall only the php-phpspec-php-diff
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-phpspec-php-diff
on CentOS 7 using yum
and dnf
.