How To Install patchutils on CentOS 8

patchutils is A collection of programs for manipulating patch files

Introduction

In this tutorial we learn how to install patchutils on CentOS 8.

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

Install patchutils on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8

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

sudo dnf remove patchutils

patchutils Package Contents on CentOS 8

/usr/bin/combinediff
/usr/bin/dehtmldiff
/usr/bin/editdiff
/usr/bin/espdiff
/usr/bin/filterdiff
/usr/bin/fixcvsdiff
/usr/bin/flipdiff
/usr/bin/grepdiff
/usr/bin/interdiff
/usr/bin/lsdiff
/usr/bin/recountdiff
/usr/bin/rediff
/usr/bin/splitdiff
/usr/bin/unwrapdiff
/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/dc7f93b4ce4894560acf9d123f3f3d92d15339
/usr/lib/.build-id/66
/usr/lib/.build-id/66/9ea656e2844df22905aeb48b659101436802b1
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/ce63f5ccd10ab7c103fc474a2d8c0ca980a954
/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/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 CentOS 8 using yum and dnf.