How To Install patchutils on Fedora 34

patchutils is A collection of programs for manipulating patch files

Introduction

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

What is patchutils

This is a collection of programs that can manipulate patch files in a variety of ways, such as interpolating between two pre-patches, combining two incremental patches, fixing line numbers in hand-edited patches, and simply listing the files modified by a patch.

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

Install patchutils 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 patchutils using dnf by running the following command:

sudo dnf -y install patchutils

Install patchutils 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 patchutils using yum by running the following command:

sudo yum -y install patchutils

How To Uninstall patchutils on Fedora 34

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

sudo dnf remove patchutils

patchutils Package Contents on Fedora 34

/usr/bin/combinediff
/usr/bin/dehtmldiff
/usr/bin/editdiff
/usr/bin/espdiff
/usr/bin/filterdiff
/usr/bin/fixcvsdiff
/usr/bin/flipdiff
/usr/bin/gitdiff
/usr/bin/gitdiffview
/usr/bin/grepdiff
/usr/bin/interdiff
/usr/bin/lsdiff
/usr/bin/patchview
/usr/bin/recountdiff
/usr/bin/rediff
/usr/bin/splitdiff
/usr/bin/svndiff
/usr/bin/svndiffview
/usr/bin/unwrapdiff
/usr/lib/.build-id
/usr/lib/.build-id/85
/usr/lib/.build-id/85/ab2d023e7b16af8f88a5ddbbbdb89b20829328
/usr/lib/.build-id/99
/usr/lib/.build-id/99/28cc13c25808358abb0d4dc38349eed12cae9d
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/baa284c325d54f7466860311451b4aa7c64614
/usr/share/doc/patchutils
/usr/share/doc/patchutils/AUTHORS
/usr/share/doc/patchutils/BUGS
/usr/share/doc/patchutils/ChangeLog
/usr/share/doc/patchutils/NEWS
/usr/share/doc/patchutils/README
/usr/share/licenses/patchutils
/usr/share/licenses/patchutils/COPYING
/usr/share/man/man1/combinediff.1.gz
/usr/share/man/man1/dehtmldiff.1.gz
/usr/share/man/man1/editdiff.1.gz
/usr/share/man/man1/espdiff.1.gz
/usr/share/man/man1/filterdiff.1.gz
/usr/share/man/man1/fixcvsdiff.1.gz
/usr/share/man/man1/flipdiff.1.gz
/usr/share/man/man1/grepdiff.1.gz
/usr/share/man/man1/interdiff.1.gz
/usr/share/man/man1/lsdiff.1.gz
/usr/share/man/man1/patchview.1.gz
/usr/share/man/man1/recountdiff.1.gz
/usr/share/man/man1/rediff.1.gz
/usr/share/man/man1/splitdiff.1.gz
/usr/share/man/man1/unwrapdiff.1.gz

References

Summary

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