How To Install wdiff on AlmaLinux 8

In this tutorial we learn how to install wdiff in AlmaLinux 8. wdiff is Compare files on a word per word basis

Introduction

In this tutorial we learn how to install wdiff on AlmaLinux 8.

What is wdiff

The GNU wdiff program is a front end to diff for comparing files on a word per word basis. A word is anything between whitespace. This is useful for comparing two texts in which a few words have been changed and for which paragraphs have been refilled. It works by creating two temporary files, one word per line, and then executes diff on these files. It collects the diff output and uses it to produce a nicer display of word differences between the original files.

We can use yum or dnf to install wdiff on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install wdiff.

Install wdiff on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install wdiff using dnf by running the following command:

sudo dnf -y install wdiff

Install wdiff on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install wdiff using yum by running the following command:

sudo yum -y install wdiff

How To Uninstall wdiff on AlmaLinux 8

To uninstall only the wdiff package we can use the following command:

sudo dnf remove wdiff

References

Summary

In this tutorial we learn how to install wdiff on AlmaLinux 8 using yum and dnf.