How To Install wdiff on CentOS 8
Introduction
In this tutorial we learn how to install wdiff on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install wdiff.
Install wdiff on CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install wdiff using yum by running the following command:
sudo yum -y install wdiff
Install wdiff on CentOS 8 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.
sudo dnf makecache
After updating yum database, We can install wdiff using dnf by running the following command:
sudo dnf -y install wdiff
How To Uninstall wdiff on CentOS 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 CentOS 8 using yum and dnf.