macOS
brew install grepcidrlocal Homebrew formula metadata
sudo port install grepcidrMacPorts ports tree · sysutils/grepcidr/Portfile · ソース: api.github.com
brew
grepcidr のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install grepcidrlocal Homebrew formula metadata
sudo port install grepcidrMacPorts ports tree · sysutils/grepcidr/Portfile · ソース: api.github.com
sudo apt install grepcidrDebian stable package indexes · grepcidr · ソース: deb.debian.org
sudo dnf install grepcidrFedora Rawhide package metadata · grepcidr · ソース: dl.fedoraproject.org
nix profile install nixpkgs#grepcidrnixpkgs package indexes · pkgs/by-name/gr/grepcidr/package.nix · ソース: api.github.com
sudo zypper install grepcidropenSUSE Tumbleweed package metadata · grepcidr · ソース: download.opensuse.org
概要
Filter IP addresses matching IPv4 CIDR/network specification
履歴
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.
セキュリティ状態
broad file, network, media, or database tool signal.
リスク blue · 信頼度 中 · tool
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
grepcidr | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
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 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
grepcidr 2.0-2
Filter IP addresses matching IPv4/IPv6 CIDR/network specification
http://www.pc-tools.net/unix/grepcidr/
sudo apt install grepcidrgrepcidr
nix profile install nixpkgs#grepcidrgrepcidr 2.0-2
Filter IP addresses matching IPv4/IPv6 CIDR/network specification
http://www.pc-tools.net/unix/grepcidr/
sudo apt install grepcidrgrepcidr 2.0-12.fc44
Filter IPv4 and IPv6 addresses matching CIDR patterns
https://www.pc-tools.net/unix/grepcidr/
sudo dnf install grepcidrgrepcidr 2.0-2.6
Filter IP addresses matching IPv4/IPv6 CIDR specification
http://www.pc-tools.net/unix/grepcidr/
sudo zypper install grepcidrgrepcidr
sudo port install grepcidrソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.