# 使用 Homebrew, Nix 安装 tagref

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

## 安装

```sh
sudo av install brew:tagref
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tagref
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#tagref
```

  证据: nixpkgs package indexes: pkgs/by-name/ta/tagref/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:tagref
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tagref>
- **版本:** 1.13.0
- **来源摘要:** Refer to other locations in your codebase
- **主页:** <https://github.com/stepchowfun/tagref>
- **仓库:** <https://github.com/stepchowfun/tagref>
- **许可证:** MIT
- **源码归档:** <https://github.com/stepchowfun/tagref/archive/refs/tags/v1.13.0.tar.gz>
- **最后更新:** 2026-06-19T02:28:30Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tagref (cli)
- tagref (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.13.0
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: https://github.com/stepchowfun/tagref
- 检测到的最新版本: v1.13.0 (当前)
## 项目历史与用法

Tagref is a source-code cross-reference checker that lets comments define tags and refer to those tags elsewhere in a repository. It is a small developer CLI for keeping informal code comments from silently rotting.

### 项目历史

The public GitHub repository was created in May 2018. The README describes Tagref as a tool for annotating code comments with `[tag:...]` markers and checking `[ref:...]`, `[file:...]`, and `[dir:...]` references for existence and uniqueness.

### 采用历史

The input package facts list Homebrew and Nix packages. That distribution pattern fits a narrow code-quality utility: easy to install globally, useful in CI, and independent of a single programming language because it scans comments and paths rather than compiling code.

### 使用方式

Users place tags and references in comments, then run the `tagref` CLI to verify that referenced tags exist, tags are unique, and file or directory references still resolve. The README explicitly notes that Tagref does not prove the comment is true; it only keeps the cross-reference unambiguous and present.

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

Package nerds care about Tagref as a tiny example of language-agnostic repository hygiene distributed through general-purpose package managers. It turns documentation links inside comments into something CI can check without adding a documentation system or a language-specific linter.

### 时间线

- 2018: Public GitHub repository created.
- 2026: Input package facts list Homebrew and Nix packages.

### Related projects

- Tagref relates to linters, documentation checkers, dead-link checkers, CI quality gates, and language-agnostic repository maintenance tools.

### 来源

- <https://api.github.com/repos/stepchowfun/tagref>
- <https://github.com/stepchowfun/tagref>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - tagref: normalized package name match | nixpkgs package indexes: pkgs/by-name/ta/tagref/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [swiftlint](https://pkg.so/zh-hans/brew/swiftlint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linter.
- [ansible-lint](https://pkg.so/zh-hans/brew/ansible-lint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linter.
- [eslint](https://pkg.so/zh-hans/brew/eslint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linter.
- [pylint](https://pkg.so/zh-hans/brew/pylint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linter.
- [staticcheck](https://pkg.so/zh-hans/brew/staticcheck/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linter.
- [pmd](https://pkg.so/zh-hans/brew/pmd/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linter.
- [stylelint](https://pkg.so/zh-hans/brew/stylelint/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linter.
- [luacheck](https://pkg.so/zh-hans/brew/luacheck/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linter.
- [eslint-seatbelt](https://pkg.so/zh-hans/npm/eslint-seatbelt/) - Local package facts share a topical domain. Shared terms: cli, code, code-quality, codebase, developer.
- [codebook-lsp](https://pkg.so/zh-hans/brew/codebook-lsp/) - Local package facts share a topical domain. Shared terms: cli, code, code-quality, developer, developer-tools.

## Combined YAML source

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


## 来源

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