# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 libmaxminddb

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

## 安装

```sh
sudo av install brew:libmaxminddb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libmaxminddb
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libmaxminddb
```

  证据: MacPorts ports tree: devel/libmaxminddb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libmaxminddb
```

  证据: Alpine Linux edge package indexes: libmaxminddb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libmaxminddb
```

  证据: Fedora Rawhide package metadata: libmaxminddb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libmaxminddb
```

  证据: nixpkgs package indexes: pkgs/by-name/li/libmaxminddb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libmaxminddb
```

  证据: Arch Linux sync databases: libmaxminddb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libmaxminddb-dev
```

  证据: Debian stable package indexes: libmaxminddb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libmaxminddb-devel
```

  证据: openSUSE Tumbleweed package metadata: libmaxminddb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:libmaxminddb
- **软件包管理器:** Homebrew
- **版本:** 1.13.3
- **来源摘要:** C library for the MaxMind DB file format
- **主页:** <https://maxmind.github.io/libmaxminddb/>
- **仓库:** <https://github.com/maxmind/libmaxminddb>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mmdblookup (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.13.3
## 项目历史与用法

libmaxminddb is MaxMind's C reader library for MaxMind DB files, the binary database format used by MaxMind GeoIP and GeoLite datasets. It packages IP-address lookup against a compact database into a C library and the mmdblookup command-line tool.

### 项目历史

MaxMind introduced libmaxminddb as the native C implementation for reading MaxMind DB files. The repository describes the format as a custom binary format for fast IP-address lookups with flexible associated data, and links to the public MaxMind DB specification.

The MaxMind DB specification documents a binary search tree, data section, and metadata area. That format became the foundation for MaxMind's newer GeoIP database distribution and replaced older GeoIP Legacy database handling in many downstream systems.

### 采用历史

The library is distributed by MaxMind and is packaged broadly across Unix-like systems, including Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, MacPorts, Nix, and openSUSE. MaxMind's README also documents installation through its Ubuntu PPA and through Homebrew or MacPorts on macOS.

Its adoption follows the adoption of GeoIP2 and GeoLite2 database files: web servers, analytics systems, fraud tooling, CDN infrastructure, and log-processing tools need a small local reader for IP geolocation databases.

### 使用方式

Applications link libmaxminddb to open .mmdb files and look up IPv4 or IPv6 addresses. Operators use mmdblookup for debugging, inspection, and shell-level checks against database files.

The package does not provide the GeoIP data itself; it provides the reader and utility around MaxMind DB files. That separation is why it appears as a library dependency in many packages that leave database download or licensing to the user.

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

libmaxminddb is important because it is the small ABI-stable-ish native reader sitting underneath a large amount of geolocation plumbing. Packaging it correctly gives higher-level bindings and tools one common implementation for the MaxMind DB format.

For package maintainers, it is also an example of a data-format reader whose security profile matters: release notes include fixes for crafted database files, integer overflow, recursion depth, and mmdblookup behavior.

### 时间线

- 2013: MaxMind copyright notices in the repository begin for libmaxminddb.
- 2010s: MaxMind DB becomes the documented binary format for GeoIP2 and GeoLite2-style IP lookup databases.
- 2024: libmaxminddb 1.10.0 adds build options and fixes lookup behavior for databases with very large search trees.
- 2026: libmaxminddb 1.13.0 through 1.13.3 releases fix validation, overflow, double-close, recursion-depth, and metadata edge cases.

### Related projects

- MaxMind DB is the underlying file-format specification.
- GeoIP2 and GeoLite2 databases are the main data products commonly read through libmaxminddb.
- Bindings in other languages and database writer tools depend on the same format and often interoperate with libmaxminddb-generated expectations.

### 来源

- <https://dev.maxmind.com/geoip/docs/databases/>
- <https://formulae.brew.sh/formula/libmaxminddb>
- <https://github.com/maxmind/libmaxminddb>
- <https://github.com/maxmind/libmaxminddb/releases>
- <https://maxmind.github.io/MaxMind-DB/>
- <https://maxmind.github.io/libmaxminddb/>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - libmaxminddb-dev - 1.12.2-1: normalized package name match | Debian stable package indexes: libmaxminddb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | IP geolocation database library (development headers) | https://maxmind.github.io/libmaxminddb/
- Debian apt - libmaxminddb0 - 1.12.2-1: normalized package name match | Debian stable package indexes: libmaxminddb0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | IP geolocation database library | https://maxmind.github.io/libmaxminddb/
- Debian apt - mmdb-bin - 1.12.2-1: normalized package name match | Debian stable package indexes: mmdb-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | IP geolocation lookup command-line tool | https://maxmind.github.io/libmaxminddb/
- Nix - libmaxminddb: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libmaxminddb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libmaxminddb-dev - 1.9.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmaxminddb-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | IP geolocation database library (development headers) | https://maxmind.github.io/libmaxminddb/
- Ubuntu apt - libmaxminddb0 - 1.9.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmaxminddb0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | IP geolocation database library | https://maxmind.github.io/libmaxminddb/
- Ubuntu apt - mmdb-bin - 1.9.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mmdb-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | IP geolocation lookup command-line tool | https://maxmind.github.io/libmaxminddb/
- apk - libmaxminddb - 1.13.3-r0: normalized package name match | Alpine Linux edge package indexes: libmaxminddb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Maxmind GeoIP2 database library | https://github.com/maxmind/libmaxminddb
- apk - libmaxminddb-dev - 1.13.3-r0: normalized package name match | Alpine Linux edge package indexes: libmaxminddb-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Maxmind GeoIP2 database library (development files) | https://github.com/maxmind/libmaxminddb
- apk - libmaxminddb-doc - 1.13.3-r0: normalized package name match | Alpine Linux edge package indexes: libmaxminddb-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Maxmind GeoIP2 database library (documentation) | https://github.com/maxmind/libmaxminddb
- apk - libmaxminddb-libs - 1.13.3-r0: normalized package name match | Alpine Linux edge package indexes: libmaxminddb-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Maxmind GeoIP2 database library (libraries) | https://github.com/maxmind/libmaxminddb
- apk - libmaxminddb-static - 1.13.3-r0: normalized package name match | Alpine Linux edge package indexes: libmaxminddb-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Maxmind GeoIP2 database library (static library) | https://github.com/maxmind/libmaxminddb
- dnf - libmaxminddb - 1.13.3-2.fc45: normalized package name match | Fedora Rawhide package metadata: libmaxminddb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | C library for reading MaxMind DB files | https://maxmind.github.io/libmaxminddb/
- dnf - libmaxminddb-devel - 1.13.3-2.fc45: normalized package name match | Fedora Rawhide package metadata: libmaxminddb-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for libmaxminddb | https://maxmind.github.io/libmaxminddb/
- pacman - libmaxminddb - 1.13.3-1: normalized package name match | Arch Linux sync databases: libmaxminddb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | MaxMindDB GeoIP2 database library | https://maxmind.github.io/libmaxminddb/
- zypper - libmaxminddb-devel - 1.13.3-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libmaxminddb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for the MaxMind DB file format library | https://dev.maxmind.com/


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
