# 使用 Homebrew, Nix 安装 osrm-backend

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

## 安装

```sh
sudo av install brew:osrm-backend
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install osrm-backend
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#osrm-backend
```

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

## 软件包事实

- **软件包键:** brew:osrm-backend
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/osrm-backend>
- **版本:** 26.8.0
- **来源摘要:** High performance routing engine
- **主页:** <https://project-osrm.org/>
- **仓库:** <https://github.com/Project-OSRM/osrm-backend>
- **上游文档:** <https://project-osrm.org/>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/Project-OSRM/osrm-backend/archive/refs/tags/v26.8.0.tar.gz>
- **最后更新:** 2026-08-01T10:39:14Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- osrm-components (cli)
- osrm-contract (cli)
- osrm-customize (cli)
- osrm-datastore (cli)
- osrm-extract (cli)
- osrm-io-benchmark (cli)
- osrm-partition (cli)
- osrm-routed (cli)
- osrm-components (别名)
- osrm-contract (别名)
- osrm-customize (别名)
- osrm-datastore (别名)
- osrm-extract (别名)
- osrm-io-benchmark (别名)
- osrm-partition (别名)
- osrm-routed (别名)

## 依赖

- boost
- libarchive
- lua
- tbb

## 构建依赖

- cmake
- flatbuffers
- fmt
- libosmium
- pkgconf
- protozero
- rapidjson
- sol2
- vtzero

## macOS 提供的库

- bzip2
- expat

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 26.8.0
- 管理器更新时间: 2026-08-01
- 本地数据: OK
- 上游仓库: https://github.com/Project-OSRM/osrm-backend
- 检测到的最新版本: v26.8.0 (当前)
## 项目历史与用法

OSRM Backend is the C++ routing engine behind the Open Source Routing Machine project. It consumes OpenStreetMap road data, preprocesses it into routing graph files, and serves route, nearest, table, match, trip, and tile services over an HTTP API, a C++ interface, and Node.js bindings.

### 项目历史

OSRM began as Dennis Luxen's attempt to bring high-performance academic route-planning algorithms to OpenStreetMap data. Wired reported in November 2013 that Luxen started OSRM around 2010 while working as a PhD candidate at Karlsruhe Institute of Technology, after a discussion with OpenStreetMap contributor Frederik Ramm led him to apply his routing research to OSM.

The OpenStreetMap wiki records the initial public release on July 9, 2010, and an ACM GIS 2011 presentation by Dennis Luxen and Christian Vetter. The same history notes later project phases involving Mapbox's Directions team and a period of slower maintenance after Mapbox shifted routing investment toward Valhalla.

### 采用历史

OSRM's adoption came from its speed and self-hostability. The official site advertises continental-sized road networks served within milliseconds, while the README documents a Docker-first quick start for turning an OSM extract into a running HTTP routing server.

The OpenStreetMap wiki lists services and applications powered by OSRM, including FOSSGIS routing, Cycle.travel, Maps.Me, Mapbox Directions components, Geofabrik-hosted routing, and commercial hosted OSRM APIs. That makes osrm-backend one of the most visible OSM packages outside the data-processing niche because it sits directly behind user-facing routing applications.

### 使用方式

Operators typically download an OSM PBF extract, run `osrm-extract` with a Lua profile such as car, bicycle, or foot, preprocess with the MLD pipeline using `osrm-partition` and `osrm-customize` or the CH pipeline using `osrm-contract`, then run `osrm-routed` to expose the API.

Application developers call OSRM for fastest-route geometry, nearest-road snapping, many-to-many duration or distance tables, noisy GPS trace matching, heuristic trip ordering, and vector tiles containing routing metadata. Profile customization is a key operational feature because it lets a deployment encode vehicle, bicycle, pedestrian, or custom routing rules.

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

osrm-backend is package-nerd catnip because it is both a research-to-production story and a packaging stress test: modern C++, heavy preprocessing, Lua profiles, Docker images, Node bindings, and a public HTTP API wrapped around graph algorithms such as contraction hierarchies and multi-level Dijkstra.

### 时间线

- July 9, 2010: Dennis Luxen announced the initial public release on the OSM-dev mailing list. November 2011: Luxen and Christian Vetter presented real-time routing with OpenStreetMap data at ACM GIS. November 2013: Wired profiled OSRM as a self-hostable alternative routing stack. 2015 onward: project leadership and maintenance became more community and Mapbox influenced, with later maintenance transitions documented by the OSM wiki.

### Related projects

- The Project-OSRM organization also maintains osrm-frontend for the demo map, osrm-text-instructions for turn instructions, and Docker images for backend deployment. Valhalla is the other major open routing engine named in OSRM's maintenance history.

### 来源

- <https://formulae.brew.sh/formula/osrm-backend>
- <https://github.com/Project-OSRM/osrm-backend>
- <https://project-osrm.org/>
- <https://project-osrm.org/docs/v5.24.0/api/>
- <https://wiki.openstreetmap.org/wiki/Open_Source_Routing_Machine>
- <https://www.wired.com/2013/11/osrm/>


## 安全说明

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


## 源数据库详情

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

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

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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [libarchive](https://pkg.so/zh-hans/brew/libarchive/) - Runtime dependency declared by Homebrew.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [bgpq4](https://pkg.so/zh-hans/brew/bgpq4/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [asroute](https://pkg.so/zh-hans/brew/asroute/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [bgpq3](https://pkg.so/zh-hans/brew/bgpq3/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [babeld](https://pkg.so/zh-hans/brew/babeld/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [olsrd](https://pkg.so/zh-hans/brew/olsrd/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [iproute2mac](https://pkg.so/zh-hans/brew/iproute2mac/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [tcptraceroute](https://pkg.so/zh-hans/brew/tcptraceroute/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [nexttrace](https://pkg.so/zh-hans/brew/nexttrace/) - Shares pkgdb curated category or tags: cli, networking, routing.

## Combined YAML source

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


## 来源

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