macOS
brew install osm2pgsqllocal Homebrew formula metadata
sudo port install osm2pgsqlMacPorts ports tree · gis/osm2pgsql/Portfile · ソース: api.github.com
brew / 順位 3297
osm2pgsql のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install osm2pgsqllocal Homebrew formula metadata
sudo port install osm2pgsqlMacPorts ports tree · gis/osm2pgsql/Portfile · ソース: api.github.com
sudo apt install osm2pgsqlDebian stable package indexes · osm2pgsql · ソース: deb.debian.org
sudo dnf install osm2pgsqlFedora Rawhide package metadata · osm2pgsql · ソース: dl.fedoraproject.org
nix profile install nixpkgs#osm2pgsqlnixpkgs package indexes · pkgs/by-name/os/osm2pgsql/package.nix · ソース: api.github.com
sudo pacman -S osm2pgsqlArch Linux sync databases · osm2pgsql · ソース: geo.mirror.pkgbuild.com
概要
OpenStreetMap data to PostgreSQL converter
履歴
osm2pgsql is one of the central OpenStreetMap data-ingestion tools. It imports OSM data into PostgreSQL/PostGIS, where renderers, geocoders, analysis jobs, and custom SQL pipelines can work with planet-scale map data.
The osm2pgsql project began in 2006, started by Jon Burgess and written in C, making it nearly as old as OpenStreetMap itself. In 2007, after OSM moved to API 0.5 and added relations, osm2pgsql gained multipolygon relation support and multiple projection support.
In 2008, osm2pgsql added support for OSM change files. From 2009, the main OpenStreetMap map was regenerated from minutely changes using a toolchain that imported data with osm2pgsql into PostgreSQL/PostGIS and rendered tiles with Mapnik.
The project kept following OSM's growth. In 2011, it switched to 64-bit IDs as the OSM node count passed one billion, and Kai Krueger took over maintainership from Jon Burgess. In 2012, the flat-file persistent node cache for slim mode reduced disk usage and improved import/update performance.
A long modernization arc followed: parsing moved to libosmium in 2015, geometry generation moved to libosmium in 2017, LuaJIT support arrived in 2018, version 1.0 in 2019 removed old-style multipolygon processing, and the flex output introduced in 2020 made custom output-table design a first-class workflow.
The 2022 experimental `osm2pgsql-gen` command brought generalization into the project. In 2023, a JSONB-based middle database format made it possible to store all OSM data including tags, attributes, and relation-member information. In 2024, Nominatim switched to flex output, the old gazetteer output was removed, and osm2pgsql 2.0 shipped.
osm2pgsql became deeply embedded because it solved the hard practical problem of keeping PostgreSQL/PostGIS databases synchronized with OSM data at rendering scale. The project history explicitly ties it to the OpenStreetMap tile toolchain and to Nominatim, the geocoder powering search on openstreetmap.org and many other map sites.
The GitHub repository passed 1,000 stars in 2021 according to the project's own history page. The Homebrew formula and package-manager metadata show distribution through Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE-family packaging.
The manual describes osm2pgsql as a specialized ETL tool for OSM data. Users usually feed it regional extracts or planet files, tune memory and disk behavior, choose pgsql or flex output, and then connect downstream software for rendering, serving, geocoding, or analysis.
The manual also warns that whole-planet imports can run for hours or days and recommends trial runs on small extracts. That operational reality is part of osm2pgsql's identity: it is not just a converter, but a tool whose schema, cache, update, and style choices determine the shape and cost of an OSM database.
osm2pgsql is package-nerd gold because it sits at the junction of C++, libosmium, Lua/LuaJIT, PostgreSQL, PostGIS, and large public datasets. Small version changes can affect import speed, schema output, multipolygon behavior, replication workflows, and downstream projects such as Nominatim or map renderers.
Its history also mirrors the OpenStreetMap ecosystem's scaling story: from early XML imports, through minutely updates and 64-bit IDs, into flexible Lua-defined outputs and JSONB-backed middle storage.
セキュリティ状態
broad file, network, media, or database tool signal. generalized runtime or code generation signal.
リスク yellow · 信頼度 中 · runtime
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
osm2pgsql | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
osm2pgsql-expire | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
osm2pgsql-replication | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:osm2pgsql |
|---|---|
| バージョン | 2.3.1 |
| パッケージマネージャ | Homebrew |
| ホームページ | https://osm2pgsql.org |
| リポジトリ | https://github.com/osm2pgsql-dev/osm2pgsql |
| 最終更新 | 2026-07-05T16:19:51Z |
| Pulse | updated |
| Bottle | 未記録 |
| サービス | 宣言なし |
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
osm2pgsql 2.1.1+ds-1
OpenStreetMap data to PostgreSQL converter
sudo apt install osm2pgsqlosm2pgsql
nix profile install nixpkgs#osm2pgsqlosm2pgsql 1.11.0+ds-1
OpenStreetMap data to PostgreSQL converter
sudo apt install osm2pgsqlosm2pgsql 2.3.1-2.fc45
Import map data from OpenStreetMap to a PostgreSQL database
sudo dnf install osm2pgsqlosm2pgsql 2.3.1-1
tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database
sudo pacman -S osm2pgsqlosm2pgsql
sudo port install osm2pgsqlソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.