# Install mapnik with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman

Toolkit for developing mapping applications. Version 4.2.2 via Homebrew; verified 2026-05-09.

## Install

```sh
sudo av install brew:mapnik
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mapnik
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mapnik
```

  Evidence: MacPorts ports tree: gis/mapnik/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add mapnik
```

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

- Debian apt (92%):

```sh
sudo apt install libmapnik-dev
```

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

- dnf (92%):

```sh
sudo dnf install mapnik
```

  Evidence: Fedora Rawhide package metadata: mapnik 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#mapnik
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ma/mapnik/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mapnik
```

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

## Package facts

- **Package key:** brew:mapnik
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mapnik>
- **Version:** 4.2.2
- **Source summary:** Toolkit for developing mapping applications
- **Homepage:** <https://mapnik.org/>
- **Repository:** <https://github.com/mapnik/mapnik>
- **Upstream docs:** <https://github.com/mapnik/mapnik/wiki>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://github.com/mapnik/mapnik/releases/download/v4.2.2/mapnik-v4.2.2.tar.bz2>
- **Last updated:** 2026-05-09T14:00:18Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- geometry_to_wkb (cli)
- mapnik-index (cli)
- mapnik-render (cli)
- pgsql2sqlite (cli)
- shapeindex (cli)
- svg2png (cli)
- geometry_to_wkb (alias)
- mapnik-index (alias)
- mapnik-render (alias)
- pgsql2sqlite (alias)
- shapeindex (alias)
- svg2png (alias)

## Dependencies

- boost
- cairo
- freetype
- gdal
- harfbuzz
- icu4c@78
- jpeg-turbo
- libavif
- libpng
- libpq
- libtiff
- libxml2
- openssl@3
- proj
- protozero
- sqlite
- webp

## Build dependencies

- cmake
- pkgconf

## 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: 4.2.2
- Package-manager updated: 2026-05-09
- Local data: ok
- Upstream repository: https://github.com/mapnik/mapnik
- info: No cached GitHub release or tag data was available.
## Project history and usage

Mapnik is an open-source C++ toolkit for high-quality map rendering, exposed to package users through command-line tools and language bindings for Python, Node.js, and C++.

### Project history

The Mapnik documentation history says Artem Pavlenko started the project in 2005. Early project news records show public activity and releases in 2005, including a BerliOS development move, early release notes, and continued 0.x releases through 2006 and 2007.

Mapnik grew around the idea that cartographic rendering should be programmable and high quality. The official docs emphasize use of established libraries such as Boost rather than reinventing common C++ infrastructure, while the homepage presents Mapnik as a core geospatial visualization and processing project.

By the 4.x era, Mapnik had a long-running release stream: the official site listed 4.2.0 in December 2025, 4.2.1 in January 2026, and 4.2.2 in March 2026. That longevity matters because many renderer packages disappear once their bindings or compiler stack age; Mapnik kept moving across several generations of C++, Python, and Node packaging.

### Adoption history

Mapnik became a common dependency in geospatial packaging because it is a library and toolkit rather than a single end-user app. The input package metadata lists packages in Homebrew, Debian, Ubuntu, Fedora, Arch, MacPorts, Nix, and Alpine, reflecting broad distribution across Unix-like systems.

Its official homepage advertises direct code examples in Python, Node.js, and C++, which explains why package managers often split Mapnik into libraries, development headers, data plugins, and CLI utilities. The same native renderer can be embedded in applications or invoked through tools like mapnik-render and shapeindex.

### How it is used

A typical Mapnik workflow defines map styling and data sources, loads a stylesheet or constructs the map programmatically, and renders image output. The homepage examples show creating a map, loading a style file, zooming to data, and rendering to PNG from Python and Node.js.

Homebrew exposes practical command-line utilities such as mapnik-render, mapnik-index, shapeindex, svg2png, pgsql2sqlite, and geometry_to_wkb. For package users, that makes Mapnik useful both as a dependency for larger map stacks and as a toolbox for testing styles and geospatial assets.

### Why package nerds care

Mapnik is significant because it sits at the uncomfortable but important intersection of C++ ABI compatibility, geospatial native dependencies, scripting-language bindings, and cartographic output quality. It is the sort of package that stresses formula maintenance more than its simple description suggests.

For package historians, Mapnik also marks the era when open-source web cartography moved from server-generated raster maps toward programmable rendering engines backed by reusable geospatial libraries.

### Timeline

- 2005: Project started by Artem Pavlenko, with early public releases recorded in the news archive.
- 2007: Official news archive includes Debian packages and community/event activity.
- 2011: Current GitHub repository created.
- 2025: Mapnik 4.2.0 released.
- 2026: Mapnik 4.2.2 released.

### Related projects

- Boost is cited by Mapnik documentation as an important supporting C++ library.
- Python and Node.js bindings are first-class user surfaces on the official homepage.
- Mapnik commonly appears near GDAL, PROJ, PostGIS, and other geospatial packages in distribution dependency graphs.

### Sources

- <https://api.github.com/repos/mapnik/mapnik>
- <https://api.github.com/repos/mapnik/mapnik/releases?per_page=5>
- <https://github.com/mapnik/sphinx-docs/blob/master/about_mapnik.rst>
- <https://mapnik.org/>
- <https://mapnik.org/news/archive.html>
- source_facts.package-manager


## Security Notes

No matching local secret-handling manifest was found for mapnik. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mapnik
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Conflicts With:** svg2png
- **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 - libmapnik-dev - 4.0.7+ds-1: normalized package name match | Debian stable package indexes: libmapnik-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ toolkit for developing GIS applications (devel) | http://www.mapnik.org/
- Debian apt - libmapnik4.0 - 4.0.7+ds-1: normalized package name match | Debian stable package indexes: libmapnik4.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ toolkit for developing GIS applications (libraries) | http://www.mapnik.org/
- Debian apt - mapnik-doc - 4.0.7+ds-1: normalized package name match | Debian stable package indexes: mapnik-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ toolkit for developing GIS applications (doc) | http://www.mapnik.org/
- Debian apt - mapnik-utils - 4.0.7+ds-1: normalized package name match | Debian stable package indexes: mapnik-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ toolkit for developing GIS applications (utilities) | http://www.mapnik.org/
- Nix - mapnik: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mapnik/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libmapnik-dev - 3.1.0+ds-7ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmapnik-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ toolkit for developing GIS applications (devel) | http://www.mapnik.org/
- Ubuntu apt - libmapnik3.1t64 - 3.1.0+ds-7ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmapnik3.1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ toolkit for developing GIS applications (libraries) | http://www.mapnik.org/
- Ubuntu apt - mapnik-doc - 3.1.0+ds-7ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: mapnik-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ toolkit for developing GIS applications (doc) | http://www.mapnik.org/
- Ubuntu apt - mapnik-utils - 3.1.0+ds-7ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: mapnik-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ toolkit for developing GIS applications (utilities) | http://www.mapnik.org/
- apk - mapnik - 4.1.4-r3: normalized package name match | Alpine Linux edge package indexes: mapnik from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | An open source toolkit for developing mapping applications | https://mapnik.org/
- apk - mapnik-dev - 4.1.4-r3: normalized package name match | Alpine Linux edge package indexes: mapnik-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Mapnik development files | https://mapnik.org/
- apk - mapnik-doc - 4.1.4-r3: normalized package name match | Alpine Linux edge package indexes: mapnik-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Mapnik documentation | https://mapnik.org/
- dnf - mapnik - 4.2.2-2.fc45: normalized package name match | Fedora Rawhide package metadata: mapnik from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Free Toolkit for developing mapping applications | http://mapnik.org/
- dnf - mapnik-demo - 4.2.2-2.fc45: normalized package name match | Fedora Rawhide package metadata: mapnik-demo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Demo utility and some sample data distributed with mapnik | http://mapnik.org/
- dnf - mapnik-devel - 4.2.2-2.fc45: normalized package name match | Fedora Rawhide package metadata: mapnik-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Mapnik is a Free toolkit for developing mapping applications | http://mapnik.org/
- dnf - mapnik-static - 4.2.2-2.fc45: normalized package name match | Fedora Rawhide package metadata: mapnik-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Static libraries for the Mapnik spatial visualization library | http://mapnik.org/


## Related links

- [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.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [cairo](https://www.automicvault.com/pkg/brew/cairo/) - Runtime dependency declared by Homebrew.
- [freetype](https://www.automicvault.com/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Runtime dependency declared by Homebrew.
- [harfbuzz](https://www.automicvault.com/pkg/brew/harfbuzz/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libavif](https://www.automicvault.com/pkg/brew/libavif/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [geoserver](https://www.automicvault.com/pkg/brew/geoserver/) - Shares av.db curated category or tags: cli, data, geospatial, gis, mapping.
- [h3](https://www.automicvault.com/pkg/brew/h3/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [libgeotiff](https://www.automicvault.com/pkg/brew/libgeotiff/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [mapproxy](https://www.automicvault.com/pkg/brew/mapproxy/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [mapserver](https://www.automicvault.com/pkg/brew/mapserver/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [postgis](https://www.automicvault.com/pkg/brew/postgis/) - Shares av.db curated category or tags: cli, data, geospatial, gis.
- [shapelib](https://www.automicvault.com/pkg/brew/shapelib/) - Shares av.db curated category or tags: cli, data, geospatial, gis.

## Combined YAML source

View the package source record on GitHub. [combined/mapnik.yml](https://github.com/automic-vault/db/blob/main/combined/mapnik.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
