# 使用 Homebrew, apt, MacPorts 安装 osmosis

查看 osmosis 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:osmosis
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install osmosis
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install osmosis
```

  证据: MacPorts ports tree: java/osmosis/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install osmosis
```

  证据: Debian stable package indexes: osmosis from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:osmosis
- **软件包管理器:** Homebrew
- **版本:** 0.49.2
- **来源摘要:** Command-line OpenStreetMap data processor
- **主页:** <https://wiki.openstreetmap.org/wiki/Osmosis>
- **仓库:** <https://github.com/openstreetmap/osmosis>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- osmosis (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.49.2
## 项目历史与用法

Osmosis is a Java command-line application for processing OpenStreetMap data through pluggable pipeline components. It can read and write files and databases, derive and apply changesets, sort datasets, and extract geographic subsets.

### 项目历史

Osmosis was built around a component pipeline model: tasks for reading, writing, filtering, sorting, database access, replication, and change handling can be chained to form larger data flows. The repository and wiki both describe this as the core design choice, allowing new tasks to be added without rewriting common file and database handling.

The project is closely associated with Brett Henderson in the OSM community. The build metadata lists Brett Henderson as a developer, and a 2020 osmosis-dev message from Michal Migurski describes picking up light Osmosis maintenance from Brett Henderson.

### 采用历史

Osmosis was a central OSM data plumbing tool during the period when planet dumps, database snapshots, replication streams, and regional extracts needed a common Java-based processor. The OpenStreetMap wiki lists workflows such as generating planet dumps from a database, loading dumps into a database, producing changesets from history tables, applying changesets, comparing planet files, sorting dumps, and extracting data by bounding box or polygon.

Development later shifted into light maintenance. The GitHub README says active development stopped in 2018 and describes periodic pull-request acceptance and minor releases; the OpenStreetMap wiki likewise points users toward Osmium as a recommended alternative while preserving Osmosis documentation for workflows that still depend on it.

### 使用方式

Developers use Osmosis by composing ordered command-line tasks, such as reading a PBF or XML file, applying a tag filter, adding referenced nodes, and writing the result. Its detailed usage documentation is large because each task exposes its own options, and argument order is part of the pipeline semantics.

Osmosis is also used in replication and database workflows where OSM change files and API database schemas matter. The 2020 maintenance note specifically mentions a release motivated by an API database schema change, which illustrates its role at the boundary between OSM files and OSM infrastructure.

### 为什么软件包爱好者会关心

Osmosis matters as a long-lived Java package in a tooling ecosystem that also contains small C utilities and modern C++ libraries. It shows how early OSM infrastructure favored chainable, extensible data processors before lighter compiled tools absorbed many routine file-processing jobs.

### 时间线

- The 0.35 release was the last release to support OSM API 0.5 data. The project README records the 2018 move away from active development. In March 2020, Michal Migurski announced light maintenance work beginning with a 0.47.1 release. GitHub lists 0.49.2 as a December 3, 2023 release.

### Related projects

- Osmium is the recommended alternative named by the OSM wiki for many workflows. osmfilter and osmconvert provide smaller compiled alternatives for filtering and conversion. OSMembrane is documented as a frontend for Osmosis usage.

### 来源

- <https://formulae.brew.sh/formula/osmosis>
- <https://github.com/openstreetmap/osmosis>
- <https://lists.openstreetmap.org/pipermail/osmosis-dev/2020-March/001861.html>
- <https://wiki.openstreetmap.org/wiki/Osmosis>
- <https://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - osmosis - 0.49.2-2: normalized package name match | Debian stable package indexes: osmosis from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line OpenStreetMap data processor | https://wiki.openstreetmap.org/wiki/Osmosis
- Ubuntu apt - osmosis - 0.49.2-2: normalized package name match | Ubuntu 24.04 LTS package indexes: osmosis from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command line OpenStreetMap data processor | https://wiki.openstreetmap.org/wiki/Osmosis
- MacPorts - osmosis: normalized package name match | MacPorts ports tree: java/osmosis/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/osmosis.yml](https://github.com/mxcl/pkgdb/blob/main/combined/osmosis.yml)


## 来源

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