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

Last updated: November 26,2024

1. Install "grep.x86_64" package

Please follow the steps below to install grep.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install grep.x86_64

2. Uninstall "grep.x86_64" package

This tutorial shows how to uninstall grep.x86_64 on Amazon Linux 2:

$ sudo yum remove grep.x86_64 $ sudo yum autoremove

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

Loaded plugins: ovl, priorities
Installed Packages
Name : grep
Arch : x86_64
Version : 2.20
Release : 3.amzn2.0.2
Size : 1.1 M
Repo : installed
Summary : Pattern matching utilities
URL : http://www.gnu.org/software/grep/
License : GPLv3+
Description : The GNU versions of commonly used grep utilities. Grep searches
: through textual input for lines which contain a match to a
: specified pattern and then prints the matching lines. GNU's grep
: utilities include grep, egrep and fgrep.
:
: GNU grep is needed by many scripts, so it shall be installed on
: every system.