macOS
brew install osm2pgroutinglocal Homebrew formula metadata
sudo port install osm2pgroutingMacPorts ports tree · gis/osm2pgrouting/Portfile · source: api.github.com
brew
Import OSM data into pgRouting database. Version 3.0.0 via Homebrew; verified 2026-06-22.
install
brew install osm2pgroutinglocal Homebrew formula metadata
sudo port install osm2pgroutingMacPorts ports tree · gis/osm2pgrouting/Portfile · source: api.github.com
sudo apt install osm2pgroutingDebian stable package indexes · osm2pgrouting · source: deb.debian.org
overview
Import OSM data into pgRouting database
history
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.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
osm2pgrouting | cli | global executable |
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.
https://github.com/pgRouting/osm2pgrouting
install metadata
| Package key | brew:osm2pgrouting |
|---|---|
| Version | 3.0.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/osm2pgrouting |
| Homepage | https://pgrouting.org/docs/tools/osm2pgrouting.html |
| Repository | https://github.com/pgRouting/osm2pgrouting |
| Upstream docs | https://github.com/pgRouting/osm2pgrouting#readme |
| License | GPL-2.0-or-later |
| Source archive | https://github.com/pgRouting/osm2pgrouting/archive/refs/tags/v3.0.0.tar.gz |
| Last updated | 2026-06-22T14:05:46-07:00 |
| Pulse | updated |
| Dependencies | boost, libpq, libpqxx, pgrouting, postgis |
| Build dependencies | cmake |
| Uses from macOS | expat |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | osm2pgrouting |
| Version Scheme | 0 |
| Revision | 2 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
osm2pgrouting 2.3.8-3
Tool to import OpenStreetMap data into a pgRouting database
https://github.com/pgRouting/osm2pgrouting
sudo apt install osm2pgroutingosm2pgrouting 2.3.8-2build3
Tool to import OpenStreetMap data into a pgRouting database
https://github.com/pgRouting/osm2pgrouting
sudo apt install osm2pgroutingosm2pgrouting
sudo port install osm2pgroutingsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.