osm2pgsql

Install command:
brew install osm2pgsql

OpenStreetMap data to PostgreSQL converter

https://osm2pgsql.org

License: GPL-2.0-only

Development: Pull requests

Formula JSON API: /api/formula/osm2pgsql.json

Formula code: osm2pgsql.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
macOS on
Intel
sonoma
Linux ARM64
x86_64

Current versions:

stable 2.2.0
head ⚡️ HEAD

Depends on:

libpq 18.2 Postgres C API library
luajit 2.1.1771261233 Just-In-Time Compiler (JIT) for the Lua programming language
proj 9.7.1 Cartographic Projections Library

Depends on when building from source:

boost 1.90.0 Collection of portable C++ source libraries
cli11 2.6.1 Simple and intuitive command-line parser for C++11
cmake 4.2.3 Cross-platform make
libosmium 2.23.0 Fast and flexible C++ library for working with OpenStreetMap data
lua 5.4.8 Powerful, lightweight programming language
nlohmann-json 3.12.0 JSON for modern C++
protozero 1.8.1 Minimalist protocol buffer decoder and encoder in C++

Analytics:

Installs (30 days)
osm2pgsql 108
osm2pgsql --HEAD 1
Installs on Request (30 days)
osm2pgsql 108
osm2pgsql --HEAD 1
Build Errors (30 days)
osm2pgsql 26
Installs (90 days)
osm2pgsql 290
osm2pgsql --HEAD 1
Installs on Request (90 days)
osm2pgsql 290
osm2pgsql --HEAD 1
Installs (365 days)
osm2pgsql 1,697
osm2pgsql --HEAD 2
Installs on Request (365 days)
osm2pgsql 1,696
osm2pgsql --HEAD 2