macOS
brew install grepcidrlocal Homebrew formula metadata
sudo port install grepcidrMacPorts ports tree · sysutils/grepcidr/Portfile · 来源: api.github.com
安装
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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.