# 使用 Homebrew, Nix 安装 martin

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

## 安装

```sh
sudo av install brew:martin
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install martin
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#martin
```

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

## 软件包事实

- **软件包键:** brew:martin
- **软件包管理器:** Homebrew
- **版本:** 1.13.0
- **来源摘要:** Blazing fast tile server, tile generation, and mbtiles tooling
- **主页:** <https://martin.maplibre.org>
- **仓库:** <https://github.com/maplibre/martin>
- **最后更新:** 2026-07-25T03:41:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- martin (别名)
- martin-cp (别名)
- mbtiles (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Martin is a Rust tile server and geospatial command-line toolkit for serving vector tiles from PostGIS databases and PMTiles or MBTiles files, plus generating and inspecting MBTiles data. In package-manager terms it sits at the intersection of web serving, GIS data plumbing, and map-tile build pipelines.

### 项目历史

The Martin repository was created in 2017 and its first public GitHub releases appeared in 2018. Early releases focused on PostGIS vector tile serving, function and table sources, TileJSON support, and a configuration-file workflow; version 0.2.0 added a command-line interface, making it more natural to package as a standalone server binary.

Martin later became part of the MapLibre ecosystem, with official documentation under MapLibre and a README that describes it as a lightweight tile server and toolset for PostGIS, PMTiles, MBTiles, styles, sprites, and glyphs. The project has continued active release work through the 1.x line, with GitHub showing 117 releases and a latest 1.11.0 release in June 2026.

### 采用历史

Martin's adoption is visible in its role as an installable CLI/server package rather than only a library. The supplied package metadata lists it in Homebrew and Nix, and the repository has several thousand GitHub stars and hundreds of forks, which is substantial for a specialized geospatial infrastructure tool.

Its MapLibre documentation and packaging make it attractive to teams building self-hosted vector-tile services, especially when they want one binary that can serve from live PostGIS data, static MBTiles or PMTiles archives, and generated supporting assets.

### 使用方式

Typical usage is to start `martin` as a tile server, pointing it at data sources directly or through a YAML config file passed with `--config`. The config file can include database connection strings and environment-variable expansion, and Martin can generate a starting config with `--save-config`.

The bundled tools broaden the package beyond a daemon: `martin-cp` generates tiles in bulk into MBTiles, while `mbtiles` examines, copies, validates, compares, and diffs MBTiles files. That makes the formula useful both in long-running tile services and in offline tile-production jobs.

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

Martin matters to package users because it compresses a lot of geospatial deployment friction into a single Rust binary: database-backed vector tiles, archive-backed tile serving, and MBTiles maintenance can all be installed with a normal package manager.

For Homebrew and Nix users, it is a good example of modern GIS infrastructure moving from heavyweight web stacks toward small, reproducible CLI/server artifacts.

### 时间线

- 2017: GitHub repository created.
- 2018: First public release series, including v0.1.0 and v0.2.0.
- 2018: v0.2.0 adds a command-line interface.
- 2026: GitHub lists Martin v1.11.0 as the latest release in June 2026.

### Related projects

- Martin is closely related to MapLibre, PostGIS, PMTiles, MBTiles, and Mapbox Vector Tile tooling.
- It overlaps with tile servers and map pipelines that need to publish vector tiles from live databases or portable tile archives.

### 来源

- <https://api.github.com/repos/maplibre/martin>
- <https://github.com/maplibre/martin>
- <https://github.com/maplibre/martin/releases?page=12>
- <https://maplibre.org/martin/config-file.html>
- source_facts.package-manager-url


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: config.yaml, file supplied with --config

## Credential files

- Unix: config.yaml, file supplied with --config
## 其他软件包管理器记录

- Nix - martin: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/martin/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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