macOS
brew install yqlocal Homebrew formula metadata
sudo port install yqMacPorts ports tree · textproc/yq/Portfile · ソース: api.github.com
brew
yq のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install yqlocal Homebrew formula metadata
sudo port install yqMacPorts ports tree · textproc/yq/Portfile · ソース: api.github.com
sudo dnf install yqFedora Rawhide package metadata · yq · ソース: dl.fedoraproject.org
nix profile install nixpkgs#yqnixpkgs package indexes · yq · ソース: raw.githubusercontent.com
sudo pacman -S yqArch Linux sync databases · yq · ソース: geo.mirror.pkgbuild.com
sudo zypper install yqopenSUSE Tumbleweed package metadata · yq · ソース: download.opensuse.org
choco install yqChocolatey community package catalog · yq · ソース: community.chocolatey.org
scoop install main/yqScoop official bucket manifest trees · bucket/yq.json · ソース: api.github.com
winget install --id MikeFarah.yq -eWindows Package Manager source index · MikeFarah.yq · ソース: cdn.winget.microsoft.com
概要
Process YAML, JSON, XML, CSV and properties documents from the CLI
履歴
Mike Farah’s yq is a portable Go command-line processor for YAML and neighboring structured formats, best understood as the “jq-shaped” tool package users reach for when sed, awk, or ad hoc Python would be too brittle for configuration files.
The mikefarah/yq repository was created in 2015 and grew out of a very practical niche: manipulating YAML from shell scripts. Older v3 documentation described the goal as being the jq or sed of YAML files; the modern README broadens that into a lightweight processor for YAML, JSON, INI, XML, TOML, properties, CSV, and TSV while retaining jq-like expression syntax.
The v4 line became the modern identity of the project: a dependency-free Go binary, installable through package managers or containers, with a richer expression language for reading, updating, merging, converting, and editing files in place. That v3-to-v4 split is historically important because many examples, packages, and user questions distinguish Mike Farah’s yq from both older yq syntax and the separate kislyuk/yq wrapper around jq.
Adoption followed the rise of YAML-heavy infrastructure work: Kubernetes manifests, CI configuration, GitHub Actions workflows, Helm and Kustomize adjunct scripts, and release automation. The project documents Homebrew, snap, Docker/Podman, GitHub Action, and direct binary installation, and its repository badges track Docker pulls and GitHub release downloads.
The tool also became popular enough to create name-collision folklore: multiple unrelated tools are called yq, and users often have to verify whether their package manager installed Mike Farah’s Go implementation, kislyuk’s Python/jq wrapper, or an older major version.
Typical usage is one-liner data surgery: read nested fields, update YAML in place, inject environment variables, merge files, convert YAML to JSON or XML to YAML, and compose expressions in CI scripts. Package users value that yq ships as a static-style Go binary, so it works well in minimal containers and build agents.
In package-nerd workflows, yq often sits next to jq: jq remains the canonical JSON processor, while yq handles the messy real-world files that package manifests, deployment descriptors, and CI systems store in YAML or adjacent formats.
yq is one of the canonical examples of a small CLI becoming infrastructure glue. It saves package maintainers from writing custom parsers for YAML edits, and its availability across Homebrew, Linux distributions, Windows package managers, containers, and GitHub Actions makes it a dependable assumption in cross-platform scripts.
Its significance is also social: when someone says “install yq,” package nerds immediately ask which yq and which major version. That ambiguity is part of the package’s history.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
yq | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/mikefarah/yq
インストールメタデータ
| パッケージキー | brew:yq |
|---|---|
| バージョン | 4.53.3 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/yq |
| ホームページ | https://github.com/mikefarah/yq |
| リポジトリ | https://github.com/mikefarah/yq |
| 上流ドキュメント | https://github.com/mikefarah/yq#readme |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/mikefarah/yq/archive/refs/tags/v4.53.3.tar.gz |
| 最終更新 | 2026-06-07T02:03:08Z |
| Pulse | updated |
| ビルド依存関係 | go, pandoc |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | yq |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
yq 3.4.3-2
Command-line YAML processor - jq wrapper for YAML documents
sudo apt install yqyq
nix profile install nixpkgs#yqyq 3.1.0-3
Command-line YAML processor - jq wrapper for YAML documents
sudo apt install yqyq 4.47.1-5.fc44
Yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor
https://github.com/mikefarah/yq
sudo dnf install yqyq 3.4.3-3
Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
sudo pacman -S yqyq 4.53.2-2.1
A portable command-line YAML processor
https://github.com/mikefarah/yq
sudo zypper install yqyq-bash-completion 4.53.2-2.1
Bash Completion for yq
https://github.com/mikefarah/yq
sudo zypper install yq-bash-completionyq-fish-completion 4.53.2-2.1
Fish Completion for yq
https://github.com/mikefarah/yq
sudo zypper install yq-fish-completionyq-zsh-completion 4.53.2-2.1
Zsh Completion for yq
https://github.com/mikefarah/yq
sudo zypper install yq-zsh-completionyq
sudo port install yqyq
choco install yqmain/yq
scoop install main/yqMikeFarah.yq
winget install --id MikeFarah.yq -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.