Installing from Source
If you can’t use the packaged version of osm2pgsql for your distribution, you can always install from source.
- To install the latest release, download the
latest release
as
tar.gz
orzip
file and unpack it. - To install a version from git, get it with
git clone https://github.com/osm2pgsql-dev/osm2pgsql
.
See the Building section in the
README.md
for a list of dependencies and build instructions.