How To Install Osm2pgsql In Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS?
Install osm2pgsql
-
Debian
apt-get install osm2pgsqlClick to copy -
Ubuntu
apt-get install osm2pgsqlClick to copy -
Kali Linux
apt-get install osm2pgsqlClick to copy -
Fedora
dnf install osm2pgsqlClick to copy -
Raspbian
apt-get install osm2pgsqlClick to copy -
macOS
brew install osm2pgsqlClick to copy
osm2pgsql
OpenStreetMap data to PostgreSQL converterConvert 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.




