pkg.soopen package index

brew / 順位 3297

osm2pgsql を Homebrew, apt, dnf, MacPorts, Nix, pacman でインストール

osm2pgsql のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install osm2pgsql

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install osm2pgsql

MacPorts ports tree · gis/osm2pgsql/Portfile · ソース: api.github.com

Linux

Debian apt確認済み · 92%
sudo apt install osm2pgsql

Debian stable package indexes · osm2pgsql · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install osm2pgsql

Fedora Rawhide package metadata · osm2pgsql · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#osm2pgsql

nixpkgs package indexes · pkgs/by-name/os/osm2pgsql/package.nix · ソース: api.github.com

Arch Linux pacman確認済み · 92%
sudo pacman -S osm2pgsql

Arch Linux sync databases · osm2pgsql · ソース: geo.mirror.pkgbuild.com

概要

パッケージ概要

OpenStreetMap data to PostgreSQL converter

コマンドとエイリアス

  • osm2pgsql
  • osm2pgsql-expire
  • osm2pgsql-replication

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2006: Jon Burgess starts osm2pgsql in C.
  • 2007: relation, multipolygon, and projection support expand after OSM API 0.5.
  • 2008-2009: change-file support enables minutely-update rendering workflows.
  • 2009: Nominatim begins using osm2pgsql with special gazetteer output.
  • 2011: 64-bit IDs land, and Kai Krueger becomes maintainer.
  • 2012: the flat-file persistent node cache improves slim-mode import and update performance.
  • 2015-2017: libosmium takes over parsing and geometry generation.
  • 2019-2020: version 1.0 and flex output modernize the processing pipeline.
  • 2022-2024: generalization, JSONB middle storage, Nominatim's flex-output migration, and osm2pgsql 2.0 reshape the project.

Related projects

  • PostgreSQL and PostGIS are the target database stack. Mapnik is historically tied to the OSM tile-rendering toolchain. Nominatim uses osm2pgsql-derived import paths for geocoding data. libosmium underpins OSM parsing and geometry handling in modern osm2pgsql.

セキュリティ状態

リスクレベル: yellow

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

リスク分類器

リスク yellow · 信頼度 中 · runtime

理由

  • broad file, network, media, or database tool signal
  • generalized runtime or code generation signal

信号

  • text:repl
  • text:sql

インストール挙動

  • Homebrew bottle メタデータは記録されていません。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
osm2pgsql実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。
osm2pgsql-expire実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。
osm2pgsql-replication実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-08-03
マネージャ版2.3.1
マネージャ更新日2026-07-05
ローカルデータ不明
上流利用不可
検出された最新未検出
  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:osm2pgsql
バージョン2.3.1
パッケージマネージャHomebrew
ホームページhttps://osm2pgsql.org
リポジトリhttps://github.com/osm2pgsql-dev/osm2pgsql
最終更新2026-07-05T16:19:51Z
Pulseupdated
Bottle未記録
サービス宣言なし

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

osm2pgsql 2.1.1+ds-1

OpenStreetMap data to PostgreSQL converter

https://osm2pgsql.org/

sudo apt install osm2pgsql
  • Section: utils
  • Architecture: amd64
  • 16 依存関係
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Osm2pgsql
Debian stable package indexes · deb.debian.org · Debian stable package indexes: osm2pgsql from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

osm2pgsql

nix profile install nixpkgs#osm2pgsql
  • normalized package name match
  • 一致条件: Osm2pgsql
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/os/osm2pgsql/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

osm2pgsql 1.11.0+ds-1

OpenStreetMap data to PostgreSQL converter

https://osm2pgsql.org/

sudo apt install osm2pgsql
  • Section: universe/utils
  • Architecture: amd64
  • 13 依存関係
  • 1 任意依存関係
  • normalized package name match
  • 一致条件: Osm2pgsql
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: osm2pgsql from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

osm2pgsql 2.3.1-2.fc45

Import map data from OpenStreetMap to a PostgreSQL database

https://osm2pgsql.org/

sudo dnf install osm2pgsql
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: osm2pgsql
  • 12 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Osm2pgsql
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: osm2pgsql from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
pacman95%

osm2pgsql 2.3.1-1

tool for loading OpenStreetMap data into a PostgreSQL / PostGIS database

https://osm2pgsql.org/

sudo pacman -S osm2pgsql
  • License: GPL-2.0-only
  • Architecture: x86_64
  • 8 依存関係
  • 2 任意依存関係
  • normalized package name match
  • 一致条件: Osm2pgsql
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: osm2pgsql from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

osm2pgsql

sudo port install osm2pgsql
  • normalized package name match
  • 一致条件: Osm2pgsql
MacPorts ports tree · api.github.com · MacPorts ports tree: gis/osm2pgsql/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation