Automic VaultAutomic Vault

brew

grepcidr を Homebrew, apt, dnf, MacPorts, Nix, zypper でインストール

grepcidr のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install grepcidr

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install grepcidr

MacPorts ports tree · sysutils/grepcidr/Portfile · ソース: api.github.com

Linux

Debian apt確認済み · 92%
sudo apt install grepcidr

Debian stable package indexes · grepcidr · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install grepcidr

Fedora Rawhide package metadata · grepcidr · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#grepcidr

nixpkgs package indexes · pkgs/by-name/gr/grepcidr/package.nix · ソース: api.github.com

openSUSE zypper確認済み · 92%
sudo zypper install grepcidr

openSUSE Tumbleweed package metadata · grepcidr · ソース: download.opensuse.org

概要

パッケージ概要

Filter IP addresses matching IPv4 CIDR/network specification

コマンドとエイリアス

  • grepcidr

履歴

プロジェクトの歴史と使われ方

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.

プロジェクトの歴史

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.

採用の歴史

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.

使われ方

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.

パッケージ好きにとっての重要性

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.

タイムライン

  • 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.

セキュリティ状態

リスクレベル: blue

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

リスク分類器

リスク blue · 信頼度 中 · tool

理由

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

信号

  • text:network

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 13 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
grepcidrcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版2.0
マネージャ更新日
ローカルデータOK
上流not checked
検出された最新未検出

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

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:grepcidr
バージョン2.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/grepcidr
ホームページhttps://www.pc-tools.net/unix/grepcidr/
上流ドキュメントhttps://www.pc-tools.net/unix/grepcidr
ライセンスGPL-2.0-or-later
ソースアーカイブhttps://www.pc-tools.net/files/unix/grepcidr-2.0.tar.gz
Bottle利用可能 (対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegrepcidr
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

grepcidr 2.0-2

Filter IP addresses matching IPv4/IPv6 CIDR/network specification

http://www.pc-tools.net/unix/grepcidr/

sudo apt install grepcidr
  • Section: net
  • Architecture: amd64
  • 1 依存関係
  • normalized package name match
  • 一致条件: Grepcidr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: grepcidr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

grepcidr

nix profile install nixpkgs#grepcidr
  • normalized package name match
  • 一致条件: Grepcidr
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gr/grepcidr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

grepcidr 2.0-2

Filter IP addresses matching IPv4/IPv6 CIDR/network specification

http://www.pc-tools.net/unix/grepcidr/

sudo apt install grepcidr
  • Section: universe/net
  • Architecture: amd64
  • 1 依存関係
  • normalized package name match
  • 一致条件: Grepcidr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: grepcidr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

grepcidr 2.0-12.fc44

Filter IPv4 and IPv6 addresses matching CIDR patterns

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

sudo dnf install grepcidr
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: grepcidr
  • 2 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Grepcidr
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: grepcidr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

grepcidr 2.0-2.6

Filter IP addresses matching IPv4/IPv6 CIDR specification

http://www.pc-tools.net/unix/grepcidr/

sudo zypper install grepcidr
  • License: GPL-3.0-or-later
  • Category: Productivity/Text/Utilities
  • Architecture: x86_64
  • Source Package: grepcidr
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Grepcidr
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: grepcidr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

grepcidr

sudo port install grepcidr
  • normalized package name match
  • 一致条件: Grepcidr
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/grepcidr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment