# Install libmaxminddb with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

C library for the MaxMind DB file format. Version 1.13.3 via Homebrew; verified 2026-06-15.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libmaxminddb
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libmaxminddb
```

  Evidence: 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
```

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

- Debian apt (92%):

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

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

- dnf (92%):

```sh
sudo dnf install libmaxminddb
```

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

- Nix (92%):

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

  Evidence: 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
```

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

- zypper (92%):

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

  Evidence: openSUSE Tumbleweed package metadata: libmaxminddb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:libmaxminddb
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libmaxminddb>
- **Version:** 1.13.3
- **Source summary:** C library for the MaxMind DB file format
- **Homepage:** <https://maxmind.github.io/libmaxminddb/>
- **Repository:** <https://github.com/maxmind/libmaxminddb>
- **Upstream docs:** <https://github.com/maxmind/libmaxminddb#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/maxmind/libmaxminddb/releases/download/1.13.3/libmaxminddb-1.13.3.tar.gz>
- **Last updated:** 2026-06-15T10:20:20-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- mmdblookup (cli)
- mmdblookup (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.13.3
- Package-manager updated: 2026-06-15
- Local data: ok
- Upstream repository: https://github.com/maxmind/libmaxminddb
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libmaxminddb
- **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

## Other Package-Manager Records

- 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-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C library for reading MaxMind DB files | https://maxmind.github.io/libmaxminddb/
- dnf - libmaxminddb-devel - 1.13.3-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.2: normalized package name match | openSUSE Tumbleweed package metadata: libmaxminddb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for the MaxMind DB file format library | https://dev.maxmind.com/


## 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.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [dnstwist](https://www.automicvault.com/pkg/brew/dnstwist/) - Popular package that depends on this formula.
- [ettercap](https://www.automicvault.com/pkg/brew/ettercap/) - Popular package that depends on this formula.
- [goaccess](https://www.automicvault.com/pkg/brew/goaccess/) - Popular package that depends on this formula.
- [logswan](https://www.automicvault.com/pkg/brew/logswan/) - Popular package that depends on this formula.
- [modsecurity](https://www.automicvault.com/pkg/brew/modsecurity/) - Popular package that depends on this formula.
- [ntopng](https://www.automicvault.com/pkg/brew/ntopng/) - Popular package that depends on this formula.
- [subnetcalc](https://www.automicvault.com/pkg/brew/subnetcalc/) - Popular package that depends on this formula.
- [syslog-ng](https://www.automicvault.com/pkg/brew/syslog-ng/) - Popular package that depends on this formula.
- [leveldb](https://www.automicvault.com/pkg/brew/leveldb/) - Shares av.db curated category or tags: cli, data, database, databases, library.
- [apache-geode](https://www.automicvault.com/pkg/brew/apache-geode/) - Shares av.db curated category or tags: cli, data, database, databases.
- [cassandra](https://www.automicvault.com/pkg/brew/cassandra/) - Shares av.db curated category or tags: cli, data, database, databases.
- [cdb](https://www.automicvault.com/pkg/brew/cdb/) - Shares av.db curated category or tags: cli, data, database, databases.
- [check_postgres](https://www.automicvault.com/pkg/brew/check-postgres/) - Shares av.db curated category or tags: cli, data, database, databases.
- [cql](https://www.automicvault.com/pkg/brew/cql/) - Shares av.db curated category or tags: cli, data, database, databases.
- [fourstore](https://www.automicvault.com/pkg/brew/fourstore/) - Shares av.db curated category or tags: cli, data, database, databases.
- [garnet](https://www.automicvault.com/pkg/brew/garnet/) - Shares av.db curated category or tags: cli, data, database, databases.

## Combined YAML source

View the package source record on GitHub. [combined/libmaxminddb.yml](https://github.com/automic-vault/db/blob/main/combined/libmaxminddb.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
- external package-manager database matches
- cross-ecosystem install command graph
