How to install grepcidr on AlmaLinux, Rocky Linux, Oracle Linux and RHEL

Filter IPv4 and IPv6 addresses matching CIDR patterns

License: GPL-2.0-or-later Vendor: Fedora Project https://www.pc-tools.net/unix/grepcidr/

Availability

Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.

Distro Channel aarch64 x86_64 Version
RHEL 10 Base 2.0
RHEL 9 Base 2.0
RHEL 8 Base 2.0
RHEL 7 Base — 2.0

Description

The grepcidr utility can be used to filter a list of IP addresses against one or more Classless Inter-Domain Routing (CIDR) specifications. As with grep, there are options to invert matching and load patterns from a file. It is capable of efficiently processing large numbers of IPs and networks.

Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Install

Base RHEL 7, 8, 9, 10

grepcidr on AlmaLinux / Rocky Linux / Oracle Linux / RHEL 8, 9, 10

sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install grepcidr

grepcidr on CentOS 7 / RHEL 7

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install grepcidr

Package downloads require an active GetPageSpeed subscription — one repository for grepcidr and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Subscribe — from $10/mo

Frequently asked questions

How do I install grepcidr on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?

Add the GetPageSpeed repository, then install the grepcidr package with your system package manager.

Which Enterprise Linux versions is grepcidr available for?

grepcidr is available for RHEL 7, 8, 9, 10.

Subscribe