# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 4.1.2
- **来源摘要:** Command-line YAML and XML processor that wraps jq
- **主页:** <https://kislyuk.github.io/yq/>
- **仓库:** <https://github.com/kislyuk/yq>
- **最后更新:** 2026-07-12T12:25:22-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.1.2

## 安全说明

narrow executable package without higher-risk signals.

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
