How To Install wdiff on Fedora 34

wdiff is Compare files on a word per word basis

Introduction

In this tutorial we learn how to install wdiff on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install wdiff.

Install wdiff on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install wdiff

Install wdiff on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove wdiff

wdiff Package Contents on Fedora 34

/usr/bin/mdiff
/usr/bin/unify
/usr/bin/wdiff
/usr/bin/wdiff2
/usr/lib/.build-id
/usr/lib/.build-id/82
/usr/lib/.build-id/82/c52cb2cd9dfeddc3dc06240a2141ab2cf9d437
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/843d4b1dc92fecee90b696e3ba313ed508cbb8
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/a4ef2a52b1badffac66be09e88c20560cea425
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/c8e060bb779edf898c27eaf4b8cf4b3c63e1fc
/usr/share/doc/wdiff
/usr/share/doc/wdiff/ABOUT-NLS
/usr/share/doc/wdiff/AUTHORS
/usr/share/doc/wdiff/BACKLOG
/usr/share/doc/wdiff/ChangeLog
/usr/share/doc/wdiff/NEWS
/usr/share/doc/wdiff/README
/usr/share/doc/wdiff/THANKS
/usr/share/doc/wdiff/TODO
/usr/share/doc/wdiff/html
/usr/share/doc/wdiff/html/Compatibility.html
/usr/share/doc/wdiff/html/Efficiency.html
/usr/share/doc/wdiff/html/Experimental-History.html
/usr/share/doc/wdiff/html/Experimental.html
/usr/share/doc/wdiff/html/Overview.html
/usr/share/doc/wdiff/html/diff-Compatibility.html
/usr/share/doc/wdiff/html/index.html
/usr/share/doc/wdiff/html/mdiff-invocation.html
/usr/share/doc/wdiff/html/mdiff.html
/usr/share/doc/wdiff/html/unify-invocation.html
/usr/share/doc/wdiff/html/unify.html
/usr/share/doc/wdiff/html/wdiff-Compatibility.html
/usr/share/doc/wdiff/html/wdiff-Examples.html
/usr/share/doc/wdiff/html/wdiff-invocation.html
/usr/share/doc/wdiff/html/wdiff.html
/usr/share/info/wdiff.info.gz
/usr/share/licenses/wdiff
/usr/share/licenses/wdiff/COPYING
/usr/share/locale/ca/LC_MESSAGES/wdiff.mo
/usr/share/locale/cs/LC_MESSAGES/wdiff.mo
/usr/share/locale/da/LC_MESSAGES/wdiff.mo
/usr/share/locale/de/LC_MESSAGES/wdiff.mo
/usr/share/locale/en@boldquot/LC_MESSAGES/wdiff.mo
/usr/share/locale/en@quot/LC_MESSAGES/wdiff.mo
/usr/share/locale/en_GB/LC_MESSAGES/wdiff.mo
/usr/share/locale/es/LC_MESSAGES/wdiff.mo
/usr/share/locale/et/LC_MESSAGES/wdiff.mo
/usr/share/locale/fi/LC_MESSAGES/wdiff.mo
/usr/share/locale/fr/LC_MESSAGES/wdiff.mo
/usr/share/locale/ga/LC_MESSAGES/wdiff.mo
/usr/share/locale/gl/LC_MESSAGES/wdiff.mo
/usr/share/locale/hu/LC_MESSAGES/wdiff.mo
/usr/share/locale/id/LC_MESSAGES/wdiff.mo
/usr/share/locale/it/LC_MESSAGES/wdiff.mo
/usr/share/locale/ms/LC_MESSAGES/wdiff.mo
/usr/share/locale/nb/LC_MESSAGES/wdiff.mo
/usr/share/locale/nl/LC_MESSAGES/wdiff.mo
/usr/share/locale/pl/LC_MESSAGES/wdiff.mo
/usr/share/locale/pt_BR/LC_MESSAGES/wdiff.mo
/usr/share/locale/ro/LC_MESSAGES/wdiff.mo
/usr/share/locale/ru/LC_MESSAGES/wdiff.mo
/usr/share/locale/sk/LC_MESSAGES/wdiff.mo
/usr/share/locale/sl/LC_MESSAGES/wdiff.mo
/usr/share/locale/sv/LC_MESSAGES/wdiff.mo
/usr/share/locale/tr/LC_MESSAGES/wdiff.mo
/usr/share/locale/uk/LC_MESSAGES/wdiff.mo
/usr/share/locale/vi/LC_MESSAGES/wdiff.mo
/usr/share/locale/zh_CN/LC_MESSAGES/wdiff.mo
/usr/share/locale/zh_TW/LC_MESSAGES/wdiff.mo
/usr/share/man/man1/mdiff.1.gz
/usr/share/man/man1/unify.1.gz
/usr/share/man/man1/wdiff.1.gz
/usr/share/man/man1/wdiff2.1.gz

References

Summary

In this tutorial we learn how to install wdiff on Fedora 34 using yum and dnf.