# Install geoip2fast with Homebrew

GeoIP2 country/ASN lookup tool. Version 1.2.2 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install geoip2fast
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:geoip2fast
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/geoip2fast>
- **Version:** 1.2.2
- **Source summary:** GeoIP2 country/ASN lookup tool
- **Homepage:** <https://github.com/rabuchaim/geoip2fast>
- **Repository:** <https://github.com/rabuchaim/geoip2fast>
- **Upstream docs:** <https://github.com/rabuchaim/geoip2fast#readme>
- **License:** MIT
- **Source archive:** <https://files.pythonhosted.org/packages/c6/07/2a346a6a3294e1a1f6c1852f17ae555160d6f41d8636ea00c2ae0a89a8ec/geoip2fast-1.2.2.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- geoip2dat (cli)
- geoip2fast (cli)
- geoip2dat (alias)
- geoip2fast (alias)

## Dependencies

- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.2.2
- Local data: ok
- Upstream repository: https://github.com/rabuchaim/geoip2fast
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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


## Related links

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


## Sources

- 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
