Automic VaultAutomic Vault

brew

Install osm2pgrouting with Homebrew, apt, MacPorts

Import OSM data into pgRouting database. Version 3.0.0 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install osm2pgrouting

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install osm2pgrouting

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

Linux

Debian aptverified · 92%
sudo apt install osm2pgrouting

Debian stable package indexes · osm2pgrouting · source: deb.debian.org

overview

Package summary

Import OSM data into pgRouting database

Commands and aliases

  • osm2pgrouting

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: blue

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

Risk classifier

blue risk · medium confidence · tool

Why

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

Signals

  • text:database

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 5 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
osm2pgroutingcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version3.0.0
manager updated2026-06-22
local dataok
upstreamcurrent
latest detectedv3.0.0

https://github.com/pgRouting/osm2pgrouting

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:osm2pgrouting
Version3.0.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/osm2pgrouting
Homepagehttps://pgrouting.org/docs/tools/osm2pgrouting.html
Repositoryhttps://github.com/pgRouting/osm2pgrouting
Upstream docshttps://github.com/pgRouting/osm2pgrouting#readme
LicenseGPL-2.0-or-later
Source archivehttps://github.com/pgRouting/osm2pgrouting/archive/refs/tags/v3.0.0.tar.gz
Last updated2026-06-22T14:05:46-07:00
Pulseupdated
Dependenciesboost, libpq, libpqxx, pgrouting, postgis
Build dependenciescmake
Uses from macOSexpat
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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