# Installer osm2pgrouting avec Homebrew, apt, MacPorts

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de osm2pgrouting pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:osm2pgrouting
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install osm2pgrouting
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install osm2pgrouting
```

  Preuve: MacPorts ports tree: gis/osm2pgrouting/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install osm2pgrouting
```

  Preuve: Debian stable package indexes: osm2pgrouting from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Faits du paquet

- **Clé du paquet:** brew:osm2pgrouting
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/osm2pgrouting>
- **Version:** 3.0.0
- **Résumé source:** Import OSM data into pgRouting database
- **Page d'accueil:** <https://pgrouting.org/docs/tools/osm2pgrouting.html>
- **Dépôt:** <https://github.com/pgRouting/osm2pgrouting>
- **Docs amont:** <https://pgrouting.org/docs/tools/osm2pgrouting.html>
- **Licence:** GPL-2.0-or-later
- **Archive source:** <https://github.com/pgRouting/osm2pgrouting/archive/refs/tags/v3.0.0.tar.gz>
- **Dernière mise à jour:** 2026-08-02T00:19:40+09:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- osm2pgrouting (cli)
- osm2pgrouting (alias)

## Dépendances

- boost
- libpq
- libpqxx
- pgrouting
- postgis

## Dépendances de compilation

- cmake

## Bibliothèques fournies par macOS

- expat

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 3.0.0
- gestionnaire mis à jour: 2026-08-02
- données locales: OK
- dépôt amont: https://github.com/pgRouting/osm2pgrouting
- dernière version détectée: v3.0.0 (à jour)
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

- <https://api.github.com/repos/pgRouting/osm2pgrouting>
- <https://formulae.brew.sh/formula/osm2pgrouting>
- <https://github.com/pgRouting/osm2pgrouting>
- <https://github.com/pgRouting/osm2pgrouting/discussions/322>
- <https://ma.ellak.gr/edu/mod/resource/view.php?id=1092>
- <https://www.freshports.org/converters/osm2pgrouting>


## Notes de sécurité

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

- **Risque Geiger:** blue / moyen
- broad file, network, media, or database tool signal

## Détails de la base source

- **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:** head, stable

## Autres enregistrements de gestionnaires de paquets

- Debian apt - osm2pgrouting - 2.3.8-3: normalized package name match | Debian stable package indexes: osm2pgrouting from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tool to import OpenStreetMap data into a pgRouting database | https://github.com/pgRouting/osm2pgrouting
- Ubuntu apt - osm2pgrouting - 2.3.8-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: osm2pgrouting from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tool to import OpenStreetMap data into a pgRouting database | https://github.com/pgRouting/osm2pgrouting
- MacPorts - osm2pgrouting: normalized package name match | MacPorts ports tree: gis/osm2pgrouting/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Liens liés

- [Secret-risk packages](https://pkg.so/fr/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/fr/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [libpq](https://pkg.so/fr/brew/libpq/) - Runtime dependency declared by Homebrew.
- [postgis](https://pkg.so/fr/brew/postgis/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/fr/brew/cmake/) - Build dependency declared by Homebrew.
- [osm2pgsql](https://pkg.so/fr/brew/osm2pgsql/) - Shares pkgdb curated category or tags: cli, data, geospatial, importer, openstreetmap.
- [osmium-tool](https://pkg.so/fr/brew/osmium-tool/) - Shares pkgdb curated category or tags: cli, data, geospatial, openstreetmap.
- [martin](https://pkg.so/fr/brew/martin/) - Shares pkgdb curated category or tags: cli, data, geospatial, postgis.
- [osmcoastline](https://pkg.so/fr/brew/osmcoastline/) - Shares pkgdb curated category or tags: cli, data, geospatial, openstreetmap.
- [osmosis](https://pkg.so/fr/brew/osmosis/) - Shares pkgdb curated category or tags: cli, data, geospatial, openstreetmap.
- [imposm3](https://pkg.so/fr/brew/imposm3/) - Shares pkgdb curated category or tags: cli, data, geospatial, openstreetmap, postgis.
- [osmfilter](https://pkg.so/fr/brew/osmfilter/) - Shares pkgdb curated category or tags: cli, data, geospatial, openstreetmap.

## Combined YAML source

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


## Sources

- 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
