# 使用 Homebrew 安装 grepip

查看 grepip 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:grepip
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install grepip
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:grepip
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/grepip>
- **版本:** 1.2.2
- **来源摘要:** Filters IPv4 & IPv6 addresses with a grep-compatible interface
- **主页:** <https://ipinfo.io>
- **仓库:** <https://github.com/ipinfo/cli>
- **上游文档:** <https://ipinfo.io>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/ipinfo/cli/archive/refs/tags/grepip-1.2.2.tar.gz>
- **最后更新:** 2026-07-25T20:55:27-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- grepip (cli)
- grepip (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.2
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/ipinfo/cli
- 检测到的最新版本: grepip-1.2.2 (当前)
## 项目历史与用法

grepip is a standalone helper shipped from the IPinfo CLI repository for extracting and filtering IPv4 and IPv6 addresses with a grep-like interface. It is much thinner historically than GNU grep or grc, but official repository materials document its role inside IPinfo's family of small IP-address CLIs.

### 项目历史

The IPinfo CLI README describes grepip alongside sibling standalone binaries such as grepdomain, matchip, prips, cidr2range, cidr2ip, range2cidr, range2ip, splitcidr, randip, and mmdb. The grepip source exposes flags for only matching IPs, including CIDRs and ranges, selecting IPv4 or IPv6, disabling color, recursing through directories, and excluding reserved or bogon IPs.

The GitHub release feed records grepip-specific releases beginning with grepip-1.0.0 on 2021-03-31 and continuing through the 1.2.x series. The grepip changelog records later additions for CIDR and range output flags and fixes for reserved/bogon edge cases.

### 采用历史

grepip's adoption path is tied to the broader IPinfo CLI rather than to a standalone ecosystem. Homebrew packages it as its own formula, while the upstream README presents it as one of the extra binaries built from the IPinfo CLI repository.

### 使用方式

grepip scans standard input, files, or directories for IP-like text and prints matching lines or only the matching address tokens. Users can restrict matches to IPv4 or IPv6, include CIDR/range strings, disable color, and exclude reserved or bogon addresses.

### 为什么软件包爱好者会关心

grepip is useful to package-minded shell users because it separates IP extraction from IPinfo API lookup. That makes it a lightweight pipeline component for logs, pasted text, and files where ordinary grep patterns would be easy to get subtly wrong.

Its significance is mostly practical rather than historical: it packages a common IP-address parsing task into a tiny binary with familiar grep-flavored options.

### 时间线

- 2021: grepip-1.0.0 published in the official GitHub release feed.
- 2021: grepip 1.1.0 and 1.2.0 followed in the same repository release feed.
- 2023: grepip-1.2.2 release metadata appeared, and the changelog records bogon edge-case fixes.
- Undated in changelog: grepip 1.2.3 added CIDR and range inclusion/output flags.

### Related projects

- The ipinfo CLI is the parent repository and related command suite.
- grepdomain, matchip, prips, cidr2range, cidr2ip, range2cidr, range2ip, splitcidr, randip, and mmdb are sibling standalone binaries listed by upstream.
- The IPinfo bogon list is referenced by grepip help text for reserved-address filtering.

### 来源

- <https://api.github.com/repos/ipinfo/cli/releases?per_page=100>
- <https://github.com/ipinfo/cli>
- <https://raw.githubusercontent.com/ipinfo/cli/master/README.md>
- <https://raw.githubusercontent.com/ipinfo/cli/master/grepip/CHANGELOG.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [ipinfo-cli](https://pkg.so/zh-hans/brew/ipinfo-cli/) - Shares the same upstream source repository.
- [cidr2range](https://pkg.so/zh-hans/brew/cidr2range/) - Shares the same upstream source repository.
- [range2cidr](https://pkg.so/zh-hans/brew/range2cidr/) - Shares the same upstream source repository.
- [subnetcalc](https://pkg.so/zh-hans/brew/subnetcalc/) - Shares pkgdb curated category or tags: cli, ipv4, ipv6, networking.
- [sipcalc](https://pkg.so/zh-hans/brew/sipcalc/) - Shares pkgdb curated category or tags: cli, ipv4, ipv6, networking.
- [grepcidr](https://pkg.so/zh-hans/brew/grepcidr/) - Shares pkgdb curated category or tags: cli, ip-filtering, ipv4, networking.
- [ahcpd](https://pkg.so/zh-hans/brew/ahcpd/) - Shares pkgdb curated category or tags: cli, ipv4, ipv6, networking.
- [ddns-go](https://pkg.so/zh-hans/brew/ddns-go/) - Shares pkgdb curated category or tags: cli, ipv4, ipv6, networking.
- [asn](https://pkg.so/zh-hans/brew/asn/) - Shares pkgdb curated category or tags: cli, ipv4, ipv6, networking.
- [ipv6calc](https://pkg.so/zh-hans/brew/ipv6calc/) - Shares pkgdb curated category or tags: cli, ipv6, networking.
- [kea](https://pkg.so/zh-hans/brew/kea/) - Shares pkgdb curated category or tags: cli, ipv6, networking.

## Combined YAML source

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


## 来源

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