How to Install and Uninstall grep Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: September 20,2024

1. Install "grep" package

This guide covers the steps necessary to install grep on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install grep

2. Uninstall "grep" package

Please follow the guidance below to uninstall grep on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the grep package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: grep
Architecture: amd64
Version: 3.1-2build1
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: 508
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.1-2build1_amd64.deb
Size: 158964
MD5sum: 6334e70a1abdff5821a267ac3e9686df
SHA1: bcae8ff0282fb6baa694491fcf40c2c58b465b32
SHA256: 069931377d9c13691622444463494030d907602afddd989b8f30336e079abe33
SHA512: bff9cc389f9770cd5aab73beb493747b3275bfa2f99c59e0cb9f8a76723d9fad14386e98310ea4ff2b03fb2d2be34cade3508af3290570b63aca377d576febeb
Homepage: http://www.gnu.org/software/grep/
Description: GNU grep, egrep and fgrep
Description-md5: f9188c5583d41955f3b3fe60b9d445f1
Task: minimal
Supported: 5y

Package: grep
Architecture: amd64
Version: 3.1-2
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: 508
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.1-2_amd64.deb
Size: 157898
MD5sum: 084b72dfb0bcbf759aa60bd4514497f2
SHA1: bd75604ef84407a209a8be6c18a25bfe900a1dc3
SHA256: 30c80afa8a4f3095ec91ce5d3b46811099702002ad201cce60c0aa274ea489da
Homepage: http://www.gnu.org/software/grep/
Description: GNU grep, egrep and fgrep
Description-md5: f9188c5583d41955f3b3fe60b9d445f1
Task: minimal
Supported: 5y