How to Install and Uninstall grep Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: May 17,2024

1. Install "grep" package

Please follow the step by step instructions below to install grep on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install grep

2. Uninstall "grep" package

In this section, we are going to explain the necessary steps to uninstall grep on Ubuntu 21.04 (Hirsute Hippo):

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

3. Information about the grep package on Ubuntu 21.04 (Hirsute Hippo)

Package: grep
Architecture: amd64
Version: 3.6-1
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: 512
Provides: rgrep
Pre-Depends: libc6 (>= 2.14), libpcre3
Depends: dpkg (>= 1.15.4) | install-info
Suggests: libpcre3 (>= 7.7)
Conflicts: rgrep
Filename: pool/main/g/grep/grep_3.6-1_amd64.deb
Size: 154748
MD5sum: 688bdd53109e90f0d7fffb3fab4afdfc
SHA1: 2d949911e0572ebd889c203120dddf9ba73dae72
SHA256: abe3c6e9ebd33ddb408a06c899b7568ac12e6b786921f7367a9057775e4a0825
SHA512: a343c397012fca164cedd2aa169b7de4739dbdac619380ddf2cb2de41f49cf015de2a6dad4f44d782da3de079be14e1b4fec9576219c24450d9a9b5a25253bde
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