Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt 安装 mapnik

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mapnik

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install mapnik

MacPorts ports tree · gis/mapnik/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add mapnik

Alpine Linux edge package indexes · mapnik · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install mapnik

Fedora Rawhide package metadata · mapnik · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#mapnik

nixpkgs package indexes · pkgs/by-name/ma/mapnik/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S mapnik

Arch Linux sync databases · mapnik · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install libmapnik-dev

Debian stable package indexes · libmapnik-dev · 来源: deb.debian.org

概览

软件包摘要

Toolkit for developing mapping applications

命令和别名

  • geometry_to_wkb
  • mapnik-index
  • mapnik-render
  • pgsql2sqlite
  • shapeindex
  • svg2png

历史

项目历史与用法

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

项目历史

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.

采用历史

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.

使用方式

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.

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

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.

时间线

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

安全态势

尚未找到受保护工具覆盖

没有找到 mapnik 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 17 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
geometry_to_wkbcli全局可执行文件
mapnik-indexcli全局可执行文件
mapnik-rendercli全局可执行文件
pgsql2sqlitecli全局可执行文件
shapeindexcli全局可执行文件
svg2pngcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本4.2.2
管理器更新时间2026-05-09
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/mapnik/mapnik

安装元数据

软件包元数据

软件包键brew:mapnik
版本4.2.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/mapnik
主页https://mapnik.org/
仓库https://github.com/mapnik/mapnik
上游文档https://github.com/mapnik/mapnik/wiki
许可证LGPL-2.1-or-later
源码归档https://github.com/mapnik/mapnik/releases/download/v4.2.2/mapnik-v4.2.2.tar.bz2
最后更新2026-05-09T14:00:18Z
Pulseupdated
依赖boost, cairo, freetype, gdal, harfbuzz, icu4c@78, jpeg-turbo, libavif, libpng, libpq, libtiff, libxml2, openssl@3, proj, protozero, sqlite, webp
构建依赖cmake, pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemapnik
Version Scheme0
Revision1
Head VersionHEAD
Conflicts With
  • svg2png
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libmapnik-dev 4.0.7+ds-1

C++ toolkit for developing GIS applications (devel)

http://www.mapnik.org/

sudo apt install libmapnik-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: mapnik
  • 29 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mapnik
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmapnik-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmapnik4.0 4.0.7+ds-1

C++ toolkit for developing GIS applications (libraries)

http://www.mapnik.org/

sudo apt install libmapnik4.0
  • Section: libs
  • Architecture: amd64
  • Source Package: mapnik
  • 17 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mapnik
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmapnik4.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

mapnik-doc 4.0.7+ds-1

C++ toolkit for developing GIS applications (doc)

http://www.mapnik.org/

sudo apt install mapnik-doc
  • Section: doc
  • Architecture: all
  • Source Package: mapnik
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mapnik
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mapnik-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

mapnik-utils 4.0.7+ds-1

C++ toolkit for developing GIS applications (utilities)

http://www.mapnik.org/

sudo apt install mapnik-utils
  • Section: utils
  • Architecture: amd64
  • Source Package: mapnik
  • 8 依赖
  • normalized package name match
  • 匹配方式:Mapnik
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mapnik-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

mapnik

nix profile install nixpkgs#mapnik
  • normalized package name match
  • 匹配方式:Mapnik
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ma/mapnik/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libmapnik-dev 3.1.0+ds-7ubuntu2

C++ toolkit for developing GIS applications (devel)

http://www.mapnik.org/

sudo apt install libmapnik-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: mapnik
  • 26 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mapnik
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmapnik-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libmapnik3.1t64 3.1.0+ds-7ubuntu2

C++ toolkit for developing GIS applications (libraries)

http://www.mapnik.org/

sudo apt install libmapnik3.1t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: mapnik
  • 18 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mapnik
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmapnik3.1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mapnik-doc 3.1.0+ds-7ubuntu2

C++ toolkit for developing GIS applications (doc)

http://www.mapnik.org/

sudo apt install mapnik-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: mapnik
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mapnik
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mapnik-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

mapnik-utils 3.1.0+ds-7ubuntu2

C++ toolkit for developing GIS applications (utilities)

http://www.mapnik.org/

sudo apt install mapnik-utils
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: mapnik
  • 6 依赖
  • normalized package name match
  • 匹配方式:Mapnik
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mapnik-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

mapnik 4.1.4-r3

An open source toolkit for developing mapping applications

https://mapnik.org/

sudo apk add mapnik
  • License: LGPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mapnik
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mapnik
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mapnik from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

mapnik-dev 4.1.4-r3

Mapnik development files

https://mapnik.org/

sudo apk add mapnik-dev
  • License: LGPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mapnik
  • normalized package name match
  • 匹配方式:Mapnik
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mapnik-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

mapnik-doc 4.1.4-r3

Mapnik documentation

https://mapnik.org/

sudo apk add mapnik-doc
  • License: LGPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: mapnik
  • normalized package name match
  • 匹配方式:Mapnik
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mapnik-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

mapnik 4.2.2-2.fc45

Free Toolkit for developing mapping applications

http://mapnik.org/

sudo dnf install mapnik
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: i686
  • Source Package: mapnik
  • 32 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Mapnik
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mapnik from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mapnik-demo 4.2.2-2.fc45

Demo utility and some sample data distributed with mapnik

http://mapnik.org/

sudo dnf install mapnik-demo
  • License: GPL-2.0-or-later AND LicenseRef-GeoGratis
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mapnik
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mapnik
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf95%

mapnik-devel 4.2.2-2.fc45

Mapnik is a Free toolkit for developing mapping applications

http://mapnik.org/

sudo dnf install mapnik-devel
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: i686
  • Source Package: mapnik
  • 21 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Mapnik
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf95%

mapnik-static 4.2.2-2.fc45

Static libraries for the Mapnik spatial visualization library

http://mapnik.org/

sudo dnf install mapnik-static
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: i686
  • Source Package: mapnik
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mapnik
Fedora Rawhide package metadata · dl.fedoraproject.org · 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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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