How to Install and Uninstall patch.x86_64 Package on Amazon Linux 2

Last updated: April 29,2024

1. Install "patch.x86_64" package

This guide covers the steps necessary to install patch.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install patch.x86_64

2. Uninstall "patch.x86_64" package

Please follow the guidance below to uninstall patch.x86_64 on Amazon Linux 2:

$ sudo yum remove patch.x86_64 $ sudo yum autoremove

3. Information about the patch.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : patch
Arch : x86_64
Version : 2.7.1
Release : 12.amzn2.0.2
Size : 110 k
Repo : amzn2-core/2/x86_64
Summary : Utility for modifying/upgrading files
URL : http://www.gnu.org/software/patch/patch.html
License : GPLv3+
Description : The patch program applies diff files to originals. The diff
: command is used to compare an original to a changed file. Diff
: lists the changes made to the file. A person who has the original
: file can then use the patch command with the diff file to add the
: changes to their original file (patching the file).
:
: Patch should be installed because it is a common way of upgrading
: applications.