How To Install Osm2pgsql In Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS?

How To Install Osm2pgsql In Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS?

osm2pgsql

OpenStreetMap data to PostgreSQL converter

Maintainer: Debian GIS Project



Section: utils

Install osm2pgsql

  • Debian apt-get install osm2pgsql Click to copy
  • Ubuntu apt-get install osm2pgsql Click to copy
  • Kali Linux apt-get install osm2pgsql Click to copy
  • Fedora dnf install osm2pgsql Click to copy
  • Raspbian apt-get install osm2pgsql Click to copy
  • macOS brew install osm2pgsql Click to copy

osm2pgsql

OpenStreetMap data to PostgreSQL converter

Convert OSM planet snapshot data to SQL suitable for loading into a PostgreSQL database with PostGIS geospatial extensions. This database may then be used to render maps with Mapnik or for other geospatial analysis.

To install the latest version of osm2pgsql in your favorite operating system just copy the osm2pgsql installation command from above and paste it into terminal. It will download and install the latest version of osm2pgsql 2026 package in your OS.