# 使用 Homebrew 安装 geoip2fast

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

## 安装

```sh
sudo av install brew:geoip2fast
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install geoip2fast
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:geoip2fast
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/geoip2fast>
- **版本:** 1.2.2
- **来源摘要:** GeoIP2 country/ASN lookup tool
- **主页:** <https://github.com/rabuchaim/geoip2fast>
- **仓库:** <https://github.com/rabuchaim/geoip2fast>
- **上游文档:** <https://github.com/rabuchaim/geoip2fast#readme>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/c6/07/2a346a6a3294e1a1f6c1852f17ae555160d6f41d8636ea00c2ae0a89a8ec/geoip2fast-1.2.2.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- geoip2dat (cli)
- geoip2fast (cli)
- geoip2dat (别名)
- geoip2fast (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.2.2
- 本地数据: OK
- 上游仓库: https://github.com/rabuchaim/geoip2fast
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

GeoIP2Fast is a small Python GeoIP lookup library and command-line tool built around preprocessed `.dat.gz` data files derived from MaxMind GeoLite2 CSV data. Its README emphasizes pure-Python operation, no external database or web-service dependency, IPv4 and IPv6 support, country, city, ASN, CIDR, and private-network results, and very fast in-memory lookups.

### 项目历史

The authoritative public history is mostly the repository README and changelog rather than a separate project history. The repository records a Python implementation, a legacy directory, generated GeoIP2Fast data files, and command-line tools such as `geoip2fast` and `geoip2dat` for lookup and data conversion workflows.

Version 1.2.2, documented in June 2024, recorded data-format compatibility changes, MaxMind CSV field handling, optional reduced single-file variants, self-test and coverage methods, and command-line selection of data files.

### 采用历史

GeoIP2Fast appears to serve a narrower package audience than MaxMind's official clients, but it fills a practical niche for Python users who want local IP-to-country, city, and ASN lookup without a service call or external database server. Homebrew packaging adds a Unix command-line installation path alongside Python packaging.

### 使用方式

Practitioners use GeoIP2Fast by loading a bundled or generated `.dat.gz` file into memory and calling `lookup()` from Python, or by invoking the CLI with one or more IP addresses. The project also supports updating data files from release artifacts, generating data files from GeoLite2 CSV input, running speed tests, checking database coverage, and printing JSON-like lookup results.

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

For package users, GeoIP2Fast is interesting because it trades a larger resident data structure for dependency-light local lookups. It is most useful in scripts, batch enrichment jobs, log analysis, and small services where avoiding network calls and database setup matters more than using MaxMind's official binary database reader stack.

### 时间线

- 2024: Version 1.2.2 documented MaxMind GeoLite2 CSV field handling and v1.2 data-file compatibility changes.
- 2024: The README documented automatic `.dat.gz` downloads, CLI update commands, coverage checks, and speed-test options.

### Related projects

- GeoIP2Fast depends on MaxMind GeoLite2 CSV data as an upstream data source. Its problem space overlaps MaxMind's GeoIP database tools and local GeoIP lookup libraries, but its implementation centers on its own compressed data-file format.

### 来源

- <https://formulae.brew.sh/formula/geoip2fast>
- <https://github.com/rabuchaim/geoip2fast>


## 安全说明

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:** geoip2fast
- **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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [geoipupdate](https://www.automicvault.com/zh-hans/pkg/brew/geoipupdate/) - Shares av.db curated category or tags: cli, geoip, geolocation, networking.
- [mmdbinspect](https://www.automicvault.com/zh-hans/pkg/brew/mmdbinspect/) - Shares av.db curated category or tags: cli, geoip, ip-lookup, networking.
- [airshare](https://www.automicvault.com/zh-hans/pkg/brew/airshare/) - Shares av.db curated category or tags: cli, networking, python.
- [asn](https://www.automicvault.com/zh-hans/pkg/brew/asn/) - Shares av.db curated category or tags: asn, cli, networking.
- [asnmap](https://www.automicvault.com/zh-hans/pkg/brew/asnmap/) - Shares av.db curated category or tags: asn, cli, networking.
- [gdown](https://www.automicvault.com/zh-hans/pkg/brew/gdown/) - Shares av.db curated category or tags: cli, networking, python.
- [getmail6](https://www.automicvault.com/zh-hans/pkg/brew/getmail6/) - Shares av.db curated category or tags: cli, networking, python.
- [magic-wormhole](https://www.automicvault.com/zh-hans/pkg/brew/magic-wormhole/) - Shares av.db curated category or tags: cli, networking, python.

## Combined YAML source

View the package source record on GitHub. [combined/geoip2fast.yml](https://github.com/automic-vault/db/blob/main/combined/geoip2fast.yml)


## 来源

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