Information about the package, grep, which is shipped with common Linux distributions. The grep package is designed for, Pattern matching utilities.
Package Name:
grep
Summary:
Pattern matching utilities
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.
Architecture:
x86_64
Version:
2.20
Release:
6.el6
Size:
1.1 M
Repository:
installed
From Repository:
base
Licence:
GPLv3+
Control the grep package with the following handy commands outlined below.
yum install grep
This command will install grep on the server.
yum remove grep
This command will un-install grep on the server. When you run this command, you will be asked if you are sure that you want to remove grep, so you have to manually confirm that you want to do this.
yum -y remove grep
This command will un-install grep on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove grep when using the -y flag.
yum update grep
This command will update grep to the latest version. When you run this command, you will be asked if you are sure that you want to remove grep, so you have to manually confirm that you want to do this.
yum -y update grep
This command will update grep to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove grep when using the -y flag.
yum info grep
This command will show you core information about the grep package.
yum deplist grep
This command will show you the dependencies for grep. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.
yum check-update grep
This command will check if there is an update waiting on grep. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.