How To Install php-pear-Text-Diff on Rocky Linux 8

In this tutorial we learn how to install php-pear-Text-Diff on Rocky Linux 8. php-pear-Text-Diff is Engine for performing and rendering text diffs

Introduction

In this tutorial we learn how to install php-pear-Text-Diff on Rocky Linux 8.

What is php-pear-Text-Diff

This package provides a text-based diff engine and renderers for multiple diff output formats.

We can use yum or dnf to install php-pear-Text-Diff on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install php-pear-Text-Diff.

Install php-pear-Text-Diff on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install php-pear-Text-Diff using dnf by running the following command:

sudo dnf -y install php-pear-Text-Diff

Install php-pear-Text-Diff on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install php-pear-Text-Diff using yum by running the following command:

sudo yum -y install php-pear-Text-Diff

How To Uninstall php-pear-Text-Diff on Rocky Linux 8

To uninstall only the php-pear-Text-Diff package we can use the following command:

sudo dnf remove php-pear-Text-Diff

php-pear-Text-Diff Package Contents on Rocky Linux 8

/usr/share/doc/pear/Text_Diff
/usr/share/doc/pear/Text_Diff/docs
/usr/share/doc/pear/Text_Diff/docs/examples
/usr/share/doc/pear/Text_Diff/docs/examples/1.txt
/usr/share/doc/pear/Text_Diff/docs/examples/2.txt
/usr/share/doc/pear/Text_Diff/docs/examples/diff.php
/usr/share/pear/Text
/usr/share/pear/Text/Diff
/usr/share/pear/Text/Diff.php
/usr/share/pear/Text/Diff/Engine
/usr/share/pear/Text/Diff/Engine/native.php
/usr/share/pear/Text/Diff/Engine/shell.php
/usr/share/pear/Text/Diff/Engine/string.php
/usr/share/pear/Text/Diff/Engine/xdiff.php
/usr/share/pear/Text/Diff/Mapped.php
/usr/share/pear/Text/Diff/Renderer
/usr/share/pear/Text/Diff/Renderer.php
/usr/share/pear/Text/Diff/Renderer/context.php
/usr/share/pear/Text/Diff/Renderer/inline.php
/usr/share/pear/Text/Diff/Renderer/unified.php
/usr/share/pear/Text/Diff/ThreeWay.php
/usr/share/pear/Text/Diff3.php
/usr/share/tests/pear/Text_Diff
/usr/share/tests/pear/Text_Diff/tests
/usr/share/tests/pear/Text_Diff/tests/1.txt
/usr/share/tests/pear/Text_Diff/tests/2.txt
/usr/share/tests/pear/Text_Diff/tests/3.txt
/usr/share/tests/pear/Text_Diff/tests/4.txt
/usr/share/tests/pear/Text_Diff/tests/5.txt
/usr/share/tests/pear/Text_Diff/tests/6.txt
/usr/share/tests/pear/Text_Diff/tests/context.patch
/usr/share/tests/pear/Text_Diff/tests/context.phpt
/usr/share/tests/pear/Text_Diff/tests/context2.phpt
/usr/share/tests/pear/Text_Diff/tests/diff.phpt
/usr/share/tests/pear/Text_Diff/tests/diff_shell.phpt
/usr/share/tests/pear/Text_Diff/tests/inline.phpt
/usr/share/tests/pear/Text_Diff/tests/inline2.phpt
/usr/share/tests/pear/Text_Diff/tests/pear_bug12740.phpt
/usr/share/tests/pear/Text_Diff/tests/pear_bug4879.phpt
/usr/share/tests/pear/Text_Diff/tests/pear_bug4982.phpt
/usr/share/tests/pear/Text_Diff/tests/pear_bug6251.phpt
/usr/share/tests/pear/Text_Diff/tests/pear_bug6428.phpt
/usr/share/tests/pear/Text_Diff/tests/pear_bug7839.phpt
/usr/share/tests/pear/Text_Diff/tests/string.phpt
/usr/share/tests/pear/Text_Diff/tests/unified.patch
/usr/share/tests/pear/Text_Diff/tests/unified.phpt
/usr/share/tests/pear/Text_Diff/tests/unified2.patch
/usr/share/tests/pear/Text_Diff/tests/unified2.phpt
/usr/share/tests/pear/Text_Diff/tests/xdiff.phpt
/var/lib/pear/pkgxml/Text_Diff.xml

References

Summary

In this tutorial we learn how to install php-pear-Text-Diff on Rocky Linux 8 using yum and dnf.