# Install tag with Homebrew, MacPorts

Manipulate and query tags on macOS files. Version 0.10 via Homebrew; verified from local package data. Also installable with macports: sudo port install tag.

## Install

```sh
sudo av install brew:tag
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tag
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tag
```

  Evidence: MacPorts ports tree: sysutils/tag/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:tag
- **Package manager:** Homebrew
- **Version:** 0.10
- **Source summary:** Manipulate and query tags on macOS files
- **Homepage:** <https://github.com/jdberry/tag/>
- **Repository:** <https://github.com/jdberry/tag>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- tag (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.10
## Project history and usage

`tag` is a macOS command-line utility for manipulating Finder tags on files and querying files by tag. It wraps a Finder-era desktop metadata feature in a scriptable Unix-style interface.

### Project history

The public repository was created in October 2013, the same year Apple introduced Finder tags in OS X Mavericks. The README scopes the tool to Mac OS X 10.9 Mavericks and later and describes operations for adding, removing, setting, matching, finding, listing, and counting tag usage.

### Adoption history

The project is distributed through Homebrew and MacPorts according to the input package-manager facts. Its GitHub repository has remained a small single-purpose macOS utility rather than a cross-platform metadata framework.

### How it is used

Users install the `tag` executable and run commands such as `tag --add`, `tag --remove`, `tag --set`, `tag --find`, `tag --match`, and `tag --list` against file paths. The README also documents recursive traversal, NUL-terminated output for pipelines, and tag queries limited by home, local, or network scopes.

### Why package nerds care

Package nerds care about `tag` because it exposes macOS file tags to shell scripts, launch jobs, and package-manager-installed workflows. It is a classic Homebrew-style utility: tiny, platform-specific, and useful precisely because Apple provides the feature in the GUI but not as a portable Unix command.

### Timeline

- 2013: Public GitHub repository created.
- 2013: README targets OS X Mavericks and later.
- 2026: Input package facts list Homebrew and MacPorts packages.

### Related projects

- `tag` relates to macOS Finder tags, Spotlight metadata search, `mdfind`, shell pipelines, Homebrew, and MacPorts.

### Sources

- <https://api.github.com/repos/jdberry/tag>
- <https://github.com/jdberry/tag>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

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

## Other Package-Manager Records

- MacPorts - tag: normalized package name match | MacPorts ports tree: sysutils/tag/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/tag.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tag.yml)


## Sources

- 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
