# 使用 Homebrew, zypper, Nix, apk, apt, dnf, MacPorts, scoop 安装 python-yq

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

## 安装

```sh
sudo av install brew:python-yq
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install python-yq
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xq
```

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

### Linux

- zypper (92%):

```sh
sudo zypper install python313-yq
```

  证据: openSUSE Tumbleweed package metadata: python313-yq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#tomlq
```

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

- apk (92%):

```sh
sudo apk add xq
```

  证据: Alpine Linux edge package indexes: xq from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install xq
```

  证据: Debian stable package indexes: xq from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install xq
```

  证据: Fedora Rawhide package metadata: xq from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/xq
```

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

## 软件包事实

- **软件包键:** brew:python-yq
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/python-yq>
- **版本:** 4.1.2
- **来源摘要:** Command-line YAML and XML processor that wraps jq
- **主页:** <https://kislyuk.github.io/yq/>
- **仓库:** <https://github.com/kislyuk/yq>
- **上游文档:** <https://kislyuk.github.io/yq/>
- **许可证:** Apache-2.0
- **源码归档:** <https://files.pythonhosted.org/packages/58/24/1e43bea1cb58532658a6d5b51a5f1d45d21df50eb1d14d977eb6d3064dbb/yq-4.1.2.tar.gz>
- **最后更新:** 2026-07-12T12:25:22-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tomlq (cli)
- xq (cli)
- tomlq (别名)
- xq (别名)

## 依赖

- libyaml
- python@3.14

## macOS 提供的库

- jq

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.1.2
- 管理器更新时间: 2026-07-12
- 本地数据: OK
- 上游仓库: https://kislyuk.github.io/yq/
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

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:** python-yq
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** xq, yq
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- zypper - python313-yq - 3.4.3-1.9: normalized package name match | openSUSE Tumbleweed package metadata: python313-yq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command-line YAML processor - jq wrapper for YAML documents | https://github.com/kislyuk/yq
- zypper - python314-yq - 3.4.3-1.9: normalized package name match | openSUSE Tumbleweed package metadata: python314-yq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command-line YAML processor - jq wrapper for YAML documents | https://github.com/kislyuk/yq
- MacPorts - xq: installed executable or alias match | MacPorts ports tree: textproc/xq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - xq - 1.3.0-1+b6: installed executable or alias match | Debian stable package indexes: xq from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command line XML and HTML beautifier and content extractor | https://github.com/sibprogrammer/xq
- Nix - tomlq: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/to/tomlq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Nix - xq: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/xq/xq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - xq - 1.0.0-2build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: xq from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command line XML and HTML beautifier and content extractor | https://github.com/sibprogrammer/xq
- apk - xq - 1.3.0-r16: installed executable or alias match | Alpine Linux edge package indexes: xq from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command-line XML and HTML beautifier and content extractor | https://github.com/sibprogrammer/xq
- apk - xq-doc - 1.3.0-r16: installed executable or alias match | Alpine Linux edge package indexes: xq-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command-line XML and HTML beautifier and content extractor (documentation) | https://github.com/sibprogrammer/xq
- dnf - xq - 1.4.0-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: xq from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Command-line XML and HTML beautifier and content extractor | https://github.com/sibprogrammer/xq
- Scoop - main/xq: installed executable or alias match | Scoop official bucket manifest trees: bucket/xq.json from https://api.github.com/repos/ScoopInstaller/Main/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.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [dasel](https://pkg.so/zh-hans/brew/dasel/) - Shares pkgdb curated category or tags: cli, data-processing, developer-tools, json, toml.
- [yq](https://pkg.so/zh-hans/brew/yq/) - Shares pkgdb curated category or tags: cli, data-processing, developer-tools, json, toml.
- [yj](https://pkg.so/zh-hans/brew/yj/) - Shares pkgdb curated category or tags: cli, data-conversion, developer-tools, json, toml.
- [otree](https://pkg.so/zh-hans/brew/otree/) - Shares pkgdb curated category or tags: cli, developer-tools, json, toml, xml.
- [remarshal](https://pkg.so/zh-hans/brew/remarshal/) - Shares pkgdb curated category or tags: cli, data-conversion, developer-tools, json, toml.
- [oq](https://pkg.so/zh-hans/brew/oq/) - Shares pkgdb curated category or tags: cli, data-processing, developer-tools, jq, json.
- [jsongrep](https://pkg.so/zh-hans/brew/jsongrep/) - Shares pkgdb curated category or tags: cli, developer-tools, json, toml, yaml.
- [config-file-validator](https://pkg.so/zh-hans/brew/config-file-validator/) - Shares pkgdb curated category or tags: cli, developer-tools, json, toml, yaml.

## Combined YAML source

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


## 来源

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