Automic VaultAutomic Vault

brew

使用 Homebrew, apt, dnf, MacPorts, Nix, zypper 安装 grepcidr

查看 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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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