# 使用 Homebrew, Nix, scoop, winget 安装 mdq

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

## 安装

```sh
sudo av install brew:mdq
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mdq
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mdq
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/mdq
```

  证据: Scoop official bucket manifest trees: bucket/mdq.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Whiteknight.Mdq -e
```

  证据: Windows Package Manager source index: Whiteknight.Mdq from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:mdq
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mdq>
- **版本:** 0.10.0
- **来源摘要:** Like jq but for Markdown
- **主页:** <https://github.com/yshavit/mdq>
- **仓库:** <https://github.com/yshavit/mdq>
- **上游文档:** <https://github.com/yshavit/mdq#readme>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://github.com/yshavit/mdq/archive/refs/tags/v0.10.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- mdq (cli)
- mdq (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.10.0
- 本地数据: OK
- 上游仓库: https://github.com/yshavit/mdq
- 检测到的最新版本: v0.10.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

mdq is a Rust command-line and library project that describes itself as `jq for Markdown`: it selects Markdown elements using a query language that mirrors Markdown syntax.

### 项目历史

The public repository was created on 2024-05-25. Its README frames the project around a recurring automation problem: GitHub pull requests, issues, and templates are Markdown documents, and teams often need structured checks that are less brittle than regular expressions.

The project publishes both a CLI and a Rust library. The README points library users to crates.io and docs.rs, while CLI users can install through Homebrew, Docker images, release binaries, or Cargo.

### 采用历史

Official installation instructions list Homebrew, Docker Hub, GitHub release binaries, workflow build artifacts, and `cargo install --git`; the input package-manager facts also show availability through Homebrew, Nix, Scoop, and Winget.

GitHub repository metadata showed rapid attention for a young Markdown utility, with more than a thousand stars and a public wiki, Pages site, and discussions enabled by 2026.

### 使用方式

mdq reads Markdown from stdin or files and applies filters such as heading selectors, list selectors, task-list selectors, link selectors, table selectors, front matter selectors, and regex text matches.

The README examples show CI and workflow uses: checking that a PR checklist item is completed, extracting ticket links from a PR body, and reducing large Markdown tables to selected rows or columns.

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

mdq is significant because it treats Markdown as queryable structured data, filling a niche between `grep` and full parsers. For package users, the appeal is familiar jq-like composition applied to README files, issue bodies, changelogs, runbooks, and generated documentation.

### 时间线

- 2024: Public GitHub repository created.
- 2024: README documented Homebrew, Docker, release binaries, and Cargo installation paths.
- 2026: GitHub metadata showed active repository maintenance and broad package-manager availability in the input facts.

### Related projects

- The project explicitly positions itself by analogy to jq, but for Markdown rather than JSON.
- The README links to the mdq playground, wiki tutorial, full user manual, crates.io package, and docs.rs library documentation.

### 来源

- <https://api.github.com/repos/yshavit/mdq>
- <https://docs.rs/mdq/latest/mdq/>
- <https://github.com/yshavit/mdq#readme>
- <https://github.com/yshavit/mdq/wiki>
- 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:** mdq
- **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

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

- Nix - mdq: normalized package name match | nixpkgs package indexes: pkgs/by-name/md/mdq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/mdq: normalized package name match | Scoop official bucket manifest trees: bucket/mdq.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Whiteknight.Mdq: normalized package name match | Windows Package Manager source index: Whiteknight.Mdq from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [comrak](https://www.automicvault.com/zh-hans/pkg/brew/comrak/) - Shares av.db curated category or tags: cli, developer-tools, markdown, rust.
- [htmlq](https://www.automicvault.com/zh-hans/pkg/brew/htmlq/) - Shares av.db curated category or tags: cli, developer-tools, query, rust.
- [jaq](https://www.automicvault.com/zh-hans/pkg/brew/jaq/) - Shares av.db curated category or tags: cli, developer-tools, jq, rust.
- [jnv](https://www.automicvault.com/zh-hans/pkg/brew/jnv/) - Shares av.db curated category or tags: cli, developer-tools, jq, rust.
- [mado](https://www.automicvault.com/zh-hans/pkg/brew/mado/) - Shares av.db curated category or tags: cli, developer-tools, markdown, rust.
- [mdbook](https://www.automicvault.com/zh-hans/pkg/brew/mdbook/) - Shares av.db curated category or tags: cli, developer-tools, markdown, rust.
- [mdserve](https://www.automicvault.com/zh-hans/pkg/brew/mdserve/) - Shares av.db curated category or tags: cli, developer-tools, markdown, rust.
- [mdsh](https://www.automicvault.com/zh-hans/pkg/brew/mdsh/) - Shares av.db curated category or tags: cli, developer-tools, markdown, rust.

## Combined YAML source

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


## 来源

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