# grepcidr mit Homebrew, apt, dnf, MacPorts, Nix, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für grepcidr in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:grepcidr
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install grepcidr
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install grepcidr
```

  Evidenz: MacPorts ports tree: sysutils/grepcidr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install grepcidr
```

  Evidenz: Debian stable package indexes: grepcidr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install grepcidr
```

  Evidenz: Fedora Rawhide package metadata: grepcidr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#grepcidr
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/gr/grepcidr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install grepcidr
```

  Evidenz: openSUSE Tumbleweed package metadata: grepcidr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Paketfakten

- **Paketschlüssel:** brew:grepcidr
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/grepcidr>
- **Version:** 2.0
- **Quellzusammenfassung:** Filter IP addresses matching IPv4 CIDR/network specification
- **Homepage:** <https://www.pc-tools.net/unix/grepcidr/>
- **Upstream-Dokumentation:** <https://www.pc-tools.net/unix/grepcidr/>
- **Lizenz:** GPL-2.0-or-later
- **Quellarchiv:** <https://www.pc-tools.net/files/unix/grepcidr-2.0.tar.gz>
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- grepcidr (cli)
- grepcidr (Alias)

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 2.0
- lokale Daten: OK
- Upstream-Repository: https://www.pc-tools.net/unix/grepcidr/
- Info: No package-manager update timestamp was available.
- Info: Release/tag comparison is only available for GitHub repositories.
## Projektgeschichte und Nutzung

grepcidr is a small C command-line filter for matching IPv4 and IPv6 addresses against CIDR patterns. It borrows grep's interface style for a networking-specific job: select or reject log lines by address range.

### Projektgeschichte

Jem Berkes identifies the pc-tools.net grepcidr as the original project, created in 2004 and released as grepcidr 2.0 on 2014-05-26. The official page emphasizes that the 2.0 line is distinct from John Levine's separately developed fork, even though both names can confuse users.

Version 2.0 added IPv6 support, replaced a regex-based scanner with a hints scanner reported as faster on some platforms, enforced stricter IP text matching, added multiple file arguments, supported unlimited input line length, and improved CIDR validation.

### Adoptionsgeschichte

grepcidr's niche is operational networking: mail filtering, network security, log analysis, and custom pipelines where a full IP-address database or firewall tool would be too heavy. Its adoption in package managers follows from being a single-purpose Unix filter with no documented configuration or credential state.

### Wie es verwendet wird

The official examples show grepcidr matching an IPv6 documentation prefix against a log file and matching a Googlebot-era IPv4 CIDR range against access.log. Options include count output, inverted matching, strict CIDR alignment, strict start-of-line matching, command-line patterns, and pattern files.

### Warum Paket-Nerds sich dafür interessieren

grepcidr is package-nerd significant because it is a tiny specialist filter that fills a gap between grep and heavier network-analysis tools. It lets shell users keep grep-like pipelines while making CIDR math correct enough for log and abuse workflows.

The official fork note matters for packaging: downstreams need to know whether they are shipping Berkes' grepcidr 2.0 line or Levine's unrelated implementation.

### Zeitleiste

- 2004: Original grepcidr project created, according to the official project page.
- 2014: grepcidr 2.0 released with IPv6 support, faster scanning, stricter matching, and multiple-file support.
- 2014: Official page documented the distinction between Berkes' project and the separately developed grepcidr-2 fork.

### Related projects

- grep is the interface model for matching and inverted matching.
- John Levine's grepcidr-2 fork is called out by the official page as an unrelated implementation.
- Spamhaus is credited on the official page for sponsorship and testing of features.

### Quellen

- <https://www.pc-tools.net/unix/grepcidr>


## Sicherheitshinweise

broad file, network, media, or database tool signal.

- **Geiger-Risiko:** blue / mittel
- broad file, network, media, or database tool signal

## Details aus der Quelldatenbank

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** grepcidr
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Andere Paketmanager-Einträge

- Debian apt - grepcidr - 2.0-2: normalized package name match | Debian stable package indexes: grepcidr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Filter IP addresses matching IPv4/IPv6 CIDR/network specification | http://www.pc-tools.net/unix/grepcidr/
- Nix - grepcidr: normalized package name match | nixpkgs package indexes: pkgs/by-name/gr/grepcidr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - grepcidr - 2.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: grepcidr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Filter IP addresses matching IPv4/IPv6 CIDR/network specification | http://www.pc-tools.net/unix/grepcidr/
- dnf - grepcidr - 2.0-13.fc45: normalized package name match | Fedora Rawhide package metadata: grepcidr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Filter IPv4 and IPv6 addresses matching CIDR patterns | https://www.pc-tools.net/unix/grepcidr/
- zypper - grepcidr - 2.0-2.8: normalized package name match | openSUSE Tumbleweed package metadata: grepcidr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Filter IP addresses matching IPv4/IPv6 CIDR specification | http://www.pc-tools.net/unix/grepcidr/
- MacPorts - grepcidr: normalized package name match | MacPorts ports tree: sysutils/grepcidr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Verwandte Links

- [Secret-risk packages](https://pkg.so/de/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/de/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/de/brew-utility-packages/) - Matched Homebrew package provider.
- [asn](https://pkg.so/de/brew/asn/) - Popular package that depends on this formula.
- [grepip](https://pkg.so/de/brew/grepip/) - Shares pkgdb curated category or tags: cli, ip-filtering, ipv4, networking.
- [subnetcalc](https://pkg.so/de/brew/subnetcalc/) - Shares pkgdb curated category or tags: cli, ipv4, networking.
- [sipcalc](https://pkg.so/de/brew/sipcalc/) - Shares pkgdb curated category or tags: cli, ipv4, networking.
- [cidrmerge](https://pkg.so/de/brew/cidrmerge/) - Shares pkgdb curated category or tags: cidr, cli, networking.
- [cidr](https://pkg.so/de/brew/cidr/) - Shares pkgdb curated category or tags: cidr, cli, networking.
- [prips](https://pkg.so/de/brew/prips/) - Shares pkgdb curated category or tags: cidr, cli, networking.
- [mapcidr](https://pkg.so/de/brew/mapcidr/) - Shares pkgdb curated category or tags: cidr, cli, networking.
- [netaddr](https://pkg.so/de/brew/netaddr/) - Shares pkgdb curated category or tags: cidr, cli, ipv4, networking.

## Combined YAML source

View the package source record on GitHub. [combined/grepcidr.yml](https://github.com/mxcl/pkgdb/blob/main/combined/grepcidr.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
