# 使用 Homebrew, MacPorts 安装 tag

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tag
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tag
```

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

## 软件包事实

- **软件包键:** brew:tag
- **软件包管理器:** Homebrew
- **版本:** 0.10
- **来源摘要:** Manipulate and query tags on macOS files
- **主页:** <https://github.com/jdberry/tag/>
- **仓库:** <https://github.com/jdberry/tag>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tag (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

`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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

- 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.

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

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

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

- 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)


## 来源

- 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
