Automic VaultAutomic Vault

brew

使用 Homebrew, apt, MacPorts 安装 osm2pgrouting

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install osm2pgrouting

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install osm2pgrouting

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

Linux

Debian apt已验证 · 92%
sudo apt install osm2pgrouting

Debian stable package indexes · osm2pgrouting · 来源: deb.debian.org

概览

软件包摘要

Import OSM data into pgRouting database

命令和别名

  • osm2pgrouting

历史

项目历史与用法

osm2pgrouting imports OpenStreetMap road-network data into a PostgreSQL/PostGIS database shaped for pgRouting. It is a specialized bridge between raw OSM XML and graph-routing SQL workflows.

项目历史

The pgRouting/osm2pgrouting GitHub repository was created on October 30, 2010. Older pgRouting documentation credits Daniel Wendt as the primary original author and describes the project as later hosted on the pgRouting project site.

The tool's documentation and README place it firmly in the pgRouting stack: users prepare PostgreSQL, PostGIS, pgRouting, Boost, Expat, libpqxx, and CMake, then run the importer against an OSM file and an XML mapping configuration.

采用历史

Its adoption is narrower than osm2pgsql because it targets routing topology rather than general OSM rendering or analysis. Evidence of packaging in Homebrew, Debian, Ubuntu, MacPorts, and FreeBSD ports shows it remains useful as a small import utility around pgRouting.

使用方式

osm2pgrouting reads an OSM XML file, uses `mapconfig.xml` to select road types and road classes, and creates routing-oriented tables. The older pgRouting documentation emphasizes generated types and classes tables, which can be used to build more sophisticated cost functions.

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

The package is a classic geospatial adapter: not a database, not a router, and not a renderer, but the glue that creates pgRouting-ready graph tables from OSM source data. Package maintainers care because its dependency stack crosses C++, PostgreSQL client libraries, PostGIS, and pgRouting ABI expectations.

时间线

  • 2010-10-30: the pgRouting/osm2pgrouting repository is created on GitHub.
  • Older pgRouting documentation records Daniel Wendt as the primary original author.
  • Version 3.0.0 release notes discuss schema-level changes such as bigint identifiers and generated identity columns.

Related projects

  • pgRouting supplies the graph algorithms and database extension; PostGIS supplies spatial types and operations; PostgreSQL stores the imported network. osm2pgrouting is one importer in that stack.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:database

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
osm2pgroutingcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-11
管理器版本3.0.0
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本v3.0.0

https://github.com/pgRouting/osm2pgrouting

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:osm2pgrouting
版本3.0.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/osm2pgrouting
主页https://pgrouting.org/docs/tools/osm2pgrouting.html
仓库https://github.com/pgRouting/osm2pgrouting
上游文档https://github.com/pgRouting/osm2pgrouting#readme
许可证GPL-2.0-or-later
源码归档https://github.com/pgRouting/osm2pgrouting/archive/refs/tags/v3.0.0.tar.gz
最后更新2026-06-22T14:05:46-07:00
Pulseupdated
依赖boost, libpq, libpqxx, pgrouting, postgis
构建依赖cmake
macOS 提供的库expat
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

osm2pgrouting 2.3.8-3

Tool to import OpenStreetMap data into a pgRouting database

https://github.com/pgRouting/osm2pgrouting

sudo apt install osm2pgrouting
  • Section: utils
  • Architecture: amd64
  • 7 依赖
  • normalized package name match
  • 匹配方式:Osm2pgrouting
Debian stable package indexes · deb.debian.org · Debian stable package indexes: osm2pgrouting from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

osm2pgrouting 2.3.8-2build3

Tool to import OpenStreetMap data into a pgRouting database

https://github.com/pgRouting/osm2pgrouting

sudo apt install osm2pgrouting
  • Section: universe/utils
  • Architecture: amd64
  • 7 依赖
  • normalized package name match
  • 匹配方式:Osm2pgrouting
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: osm2pgrouting from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
MacPorts95%

osm2pgrouting

sudo port install osm2pgrouting
  • normalized package name match
  • 匹配方式:Osm2pgrouting
MacPorts ports tree · api.github.com · MacPorts ports tree: gis/osm2pgrouting/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 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