# Install osmfilter with Homebrew

Command-line tool to filter OpenStreetMap files for specific tags. Version 0.9 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:osmfilter
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install osmfilter
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:osmfilter
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/osmfilter>
- **Version:** 0.9
- **Source summary:** Command-line tool to filter OpenStreetMap files for specific tags
- **Homepage:** <https://wiki.openstreetmap.org/wiki/Osmfilter>
- **Repository:** <https://gitlab.com/osm-c-tools/osmctools>
- **Upstream docs:** <https://gitlab.com/osm-c-tools/osmctools>
- **License:** AGPL-3.0-only
- **Source archive:** <https://gitlab.com/osm-c-tools/osmctools.git>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- osmconvert (cli)
- osmfilter (cli)
- osmupdate (cli)
- osmconvert (alias)
- osmfilter (alias)
- osmupdate (alias)

## Build dependencies

- autoconf
- automake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.9
- Local data: ok
- Upstream repository: https://wiki.openstreetmap.org/wiki/Osmfilter
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

osmfilter is one of the small osmctools command-line programs for processing OpenStreetMap data. It filters OSM objects by tags, object type, boolean expressions, and metadata, and it can also strip or modify tags and emit tag statistics.

### Project history

The public project identity is tied to the osmctools family, whose GitLab project describes a set of simple C tools used in the OpenStreetMap project. The OpenStreetMap wiki positions osmfilter alongside osmconvert and osmupdate, with osmconvert recommended for preparing the fast .o5m input format that osmfilter prefers.

Compared with larger frameworks such as Osmosis or Osmium, osmfilter kept a deliberately narrow Unix-tool shape: a single-purpose executable that reads an OSM file, applies tag and object predicates, and writes a reduced dataset.

### Adoption history

The tool circulated through OpenStreetMap-oriented documentation and distribution packaging rather than through a large standalone project. The OpenStreetMap wiki lists Debian osmctools and macOS Homebrew installation paths, while Unix manpage packaging records Markus Weber as the author and documents osmfilter together with osmconvert and osmupdate.

### How it is used

Developers and mappers use osmfilter when they need a quick extraction from a planet or regional extract: roads, waterways, bus-route relations, address-related tags, or statistics about keys and values. The examples in the wiki show its common workflow: convert a PBF/XML source to .o5m, run a keep/drop expression, and write XML or .o5m output for another OSM pipeline stage.

### Why package nerds care

osmfilter is interesting because it represents the compact C-tool branch of the OSM ecosystem. It trades framework breadth for speed, scriptability, and a tiny deployment footprint, making it a useful contrast with Java Osmosis and C++ Osmium.

### Related projects

- osmconvert handles format conversion and often prepares .o5m input for osmfilter. osmupdate handles update workflows. Osmium and Osmosis cover overlapping OSM processing tasks with broader architectures.

### Sources

- <https://formulae.brew.sh/formula/osmfilter>
- <https://gitlab.com/osm-c-tools/osmctools>
- <https://manpages.ubuntu.com/manpages/bionic/man1/osmfilter.1.html>
- <https://wiki.openstreetmap.org/wiki/Osmfilter>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** osmfilter
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [imposm3](https://www.automicvault.com/pkg/brew/imposm3/) - Shares av.db curated category or tags: cli, data, geospatial, openstreetmap.
- [osm-pbf](https://www.automicvault.com/pkg/brew/osm-pbf/) - Shares av.db curated category or tags: cli, data, geospatial, openstreetmap.
- [osmcoastline](https://www.automicvault.com/pkg/brew/osmcoastline/) - Shares av.db curated category or tags: cli, data, geospatial, openstreetmap.
- [osmium-tool](https://www.automicvault.com/pkg/brew/osmium-tool/) - Shares av.db curated category or tags: cli, data, geospatial, openstreetmap.
- [osmosis](https://www.automicvault.com/pkg/brew/osmosis/) - Shares av.db curated category or tags: cli, data, geospatial, openstreetmap.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Shares av.db curated category or tags: cli, data, geospatial.
- [geoserver](https://www.automicvault.com/pkg/brew/geoserver/) - Shares av.db curated category or tags: cli, data, geospatial.
- [gpsbabel](https://www.automicvault.com/pkg/brew/gpsbabel/) - Shares av.db curated category or tags: cli, data, geospatial.
- [geojson-validation](https://www.automicvault.com/pkg/npm/geojson-validation/) - Local package facts share a topical domain. Shared terms: cli, data, geospatial.

## Combined YAML source

View the package source record on GitHub. [combined/osmfilter.yml](https://github.com/automic-vault/db/blob/main/combined/osmfilter.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
