# mdq を Homebrew, Nix, scoop, winget でインストール

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
- **バージョン:** 0.10.0
- **ソース概要:** Like jq but for Markdown
- **ホームページ:** <https://github.com/yshavit/mdq>
- **リポジトリ:** <https://github.com/yshavit/mdq>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- mdq (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.10.0
## プロジェクトの歴史と使われ方

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

## 他のパッケージマネージャ記録

- 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


## Combined YAML source

View the package source record on GitHub. [combined/mdq.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mdq.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
