How To Install wdiff on Rocky Linux 8
Introduction
In this tutorial we learn how to install wdiff on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install wdiff.
Install wdiff 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 wdiff using dnf by running the following command:
sudo dnf -y install wdiff
Install wdiff 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 wdiff using yum by running the following command:
sudo yum -y install wdiff
How To Uninstall wdiff on Rocky Linux 8
To uninstall only the wdiff package we can use the following command:
sudo dnf remove wdiff
wdiff Package Contents on Rocky Linux 8
/usr/bin/mdiff
/usr/bin/unify
/usr/bin/wdiff
/usr/bin/wdiff2
/usr/lib/.build-id
/usr/lib/.build-id/74
/usr/lib/.build-id/74/6a9721a16b3507439a617e0f01fa2c299fc9b8
/usr/lib/.build-id/92
/usr/lib/.build-id/92/ea93ecfd48221964bca6bfe4ba80a1efecffcc
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/dccc6f87a9d24673ff3443991652056bab702e
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/823db1f997950a7ea85c7b899461ab786b5369
/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 Rocky Linux 8 using yum and dnf.