How To Install diffutils on Fedora 36
Introduction
In this tutorial we learn how to install diffutils
on Fedora 36.
What is diffutils
Diffutils includes four utilities compares two files and shows the differences, line by line. The cmp command shows the offset and line numbers where two files differ, or cmp can show the characters that differ between the two files. The diff3 command shows the differences between three files. Diff3 can be used when two people have made independent changes to a common original; diff3 can produce a merged file that contains both sets of changes and warnings about conflicts. The sdiff command can be used to merge two files interactively. Install diffutils if you need to compare text files.
We can use yum
or dnf
to install diffutils
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install diffutils.
Install diffutils on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install diffutils
using dnf
by running the following command:
sudo dnf -y install diffutils
Install diffutils on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install diffutils
using yum
by running the following command:
sudo yum -y install diffutils
How To Uninstall diffutils on Fedora 36
To uninstall only the diffutils
package we can use the following command:
sudo dnf remove diffutils
diffutils Package Contents on Fedora 36
/usr/bin/cmp
/usr/bin/diff
/usr/bin/diff3
/usr/bin/sdiff
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/0fb6a7b7c89b3dcdb99e955959aec92a1c0b6e
/usr/lib/.build-id/37
/usr/lib/.build-id/37/4ae49a8be7ecad3ba3aa0a4e9f40dd12c21033
/usr/lib/.build-id/91
/usr/lib/.build-id/91/10a0f52b11149c48b122525e58827ffef754f6
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/310432fa6d81206bd731aafd5c8cdb8d36f7f1
/usr/share/doc/diffutils
/usr/share/doc/diffutils/NEWS
/usr/share/doc/diffutils/README
/usr/share/info/diffutils.info.gz
/usr/share/licenses/diffutils
/usr/share/licenses/diffutils/COPYING
/usr/share/locale/bg/LC_MESSAGES/diffutils.mo
/usr/share/locale/ca/LC_MESSAGES/diffutils.mo
/usr/share/locale/cs/LC_MESSAGES/diffutils.mo
/usr/share/locale/da/LC_MESSAGES/diffutils.mo
/usr/share/locale/de/LC_MESSAGES/diffutils.mo
/usr/share/locale/el/LC_MESSAGES/diffutils.mo
/usr/share/locale/eo/LC_MESSAGES/diffutils.mo
/usr/share/locale/es/LC_MESSAGES/diffutils.mo
/usr/share/locale/fi/LC_MESSAGES/diffutils.mo
/usr/share/locale/fr/LC_MESSAGES/diffutils.mo
/usr/share/locale/ga/LC_MESSAGES/diffutils.mo
/usr/share/locale/gl/LC_MESSAGES/diffutils.mo
/usr/share/locale/he/LC_MESSAGES/diffutils.mo
/usr/share/locale/hr/LC_MESSAGES/diffutils.mo
/usr/share/locale/hu/LC_MESSAGES/diffutils.mo
/usr/share/locale/id/LC_MESSAGES/diffutils.mo
/usr/share/locale/it/LC_MESSAGES/diffutils.mo
/usr/share/locale/ja/LC_MESSAGES/diffutils.mo
/usr/share/locale/lv/LC_MESSAGES/diffutils.mo
/usr/share/locale/ms/LC_MESSAGES/diffutils.mo
/usr/share/locale/nb/LC_MESSAGES/diffutils.mo
/usr/share/locale/nl/LC_MESSAGES/diffutils.mo
/usr/share/locale/pl/LC_MESSAGES/diffutils.mo
/usr/share/locale/pt/LC_MESSAGES/diffutils.mo
/usr/share/locale/pt_BR/LC_MESSAGES/diffutils.mo
/usr/share/locale/ro/LC_MESSAGES/diffutils.mo
/usr/share/locale/ru/LC_MESSAGES/diffutils.mo
/usr/share/locale/sr/LC_MESSAGES/diffutils.mo
/usr/share/locale/sv/LC_MESSAGES/diffutils.mo
/usr/share/locale/tr/LC_MESSAGES/diffutils.mo
/usr/share/locale/uk/LC_MESSAGES/diffutils.mo
/usr/share/locale/vi/LC_MESSAGES/diffutils.mo
/usr/share/locale/zh_CN/LC_MESSAGES/diffutils.mo
/usr/share/locale/zh_TW/LC_MESSAGES/diffutils.mo
/usr/share/man/man1/cmp.1.gz
/usr/share/man/man1/diff.1.gz
/usr/share/man/man1/diff3.1.gz
/usr/share/man/man1/sdiff.1.gz
References
Summary
In this tutorial we learn how to install diffutils
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).