How to Install and Uninstall grep Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 17,2024

1. Install "grep" package

Please follow the instructions below to install grep on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install grep

2. Uninstall "grep" package

This is a short guide on how to uninstall grep on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove grep $ sudo apt autoclean && sudo apt autoremove

3. Information about the grep package on Ubuntu 21.10 (Impish Indri)

Package: grep
Architecture: amd64
Version: 3.7-0ubuntu1
Multi-Arch: foreign
Priority: required
Essential: yes
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Anibal Monsalve Salazar
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 572
Provides: rgrep
Pre-Depends: libc6 (>= 2.34), libpcre3
Depends: dpkg (>= 1.15.4) | install-info
Suggests: libpcre3 (>= 7.7)
Conflicts: rgrep
Filename: pool/main/g/grep/grep_3.7-0ubuntu1_amd64.deb
Size: 195026
MD5sum: f8cc428b4f390ddfc3d7a94c66f776ce
SHA1: 221d8a798a6ee6cc2ef465d71b1915ff5d198c21
SHA256: 3609d60f05cc22318d2d0ddbade7e32fc4ef9ae8ac8020eee4e424ef840e0b22
SHA512: 759a3772c7bb2c9f0cbf6f03499b0eed14312028428daf74b101691b0f7b9b8f3067a0872a6a3df224237319831dc39940b8d7f9dcb8f9cb6e5c9f4d412c070e
Homepage: https://www.gnu.org/software/grep/
Description-en: GNU grep, egrep and fgrep
'grep' is a utility to search for text in files; it can be used from the
command line or in scripts. Even if you don't want to use it, other packages
on your system probably will.
.
The GNU family of grep utilities may be the "fastest grep in the west".
GNU grep is based on a fast lazy-state deterministic matcher (about
twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-Gosper
search for a fixed string that eliminates impossible text from being
considered by the full regexp matcher without necessarily having to
look at every character. The result is typically many times faster
than Unix grep or egrep. (Regular expressions containing backreferencing
will run more slowly, however.)
Description-md5: f9188c5583d41955f3b3fe60b9d445f1
Task: minimal