# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper, scoop 安装 jaq

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

## 安装

```sh
sudo av install brew:jaq
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jaq
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jaq
```

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

### Linux

- apk (92%):

```sh
sudo apk add jaq
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#jaq
```

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

- pacman (92%):

```sh
sudo pacman -S jaq
```

  证据: Arch Linux sync databases: jaq from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install jaq
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/jaq
```

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

## 软件包事实

- **软件包键:** brew:jaq
- **软件包管理器:** Homebrew
- **版本:** 3.1.0
- **来源摘要:** JQ clone focussed on correctness, speed, and simplicity
- **主页:** <https://github.com/01mf02/jaq>
- **仓库:** <https://github.com/01mf02/jaq>
- **最后更新:** 2026-06-11T19:54:56Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jaq (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.1.0
## 项目历史与用法

jaq is a Rust implementation of the jq language and command-line JSON processing workflow, focused on correctness, speed, and simplicity. It is both a `jaq` executable for shell pipelines and a Rust library, `jaq-core`, for embedding jq-like filters in applications.

### 项目历史

The GitHub repository was created in December 2020. The README says jaq was originally motivated by the startup time of jq 1.6 and later kept its focus on correctness, performance, and a small implementation that is easier to audit and contribute to.

The project expanded beyond JSON-only jq compatibility. The README and manual document YAML, CBOR, TOML, XML, CSV, TSV, byte strings, non-string object keys, in-place replacement, and explicit documentation of divergences from jq. Release notes for the 3.0 line describe multi-format support as a major shift, effectively making jaq a structured-data transformation tool rather than only a jq clone.

### 采用历史

jaq spread through Rust and package-manager channels: the README links crates.io/docs.rs badges for `jaq-core`, binary releases for Linux, macOS, and Windows, Homebrew install commands, and a Repology packaging badge. Homebrew API data available during this enrichment recorded 2,232 installs over 365 days.

The project also gained formal support and review. The README credits NLnet and NGI0 funding, and its security section records Radically Open Security audits tied to NLnet grants, with audit findings addressed and fuzzing targets added.

### 使用方式

Users can treat `jaq` as a drop-in `jq` replacement for many filters, use it to transform JSON and other structured formats, or embed `jaq-core` in Rust programs. The manual covers the CLI, jq core language, standard library, advanced features, supported formats, examples, and documented compatibility differences.

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

jaq matters to package nerds because it is a modern reimplementation of a beloved Unix data-filter language with a Rust library boundary, strong benchmarking culture, audit notes, and multi-format ambitions. It is the kind of package users install when they care about jq semantics, startup cost, embedding, and structured-data plumbing.

### 时间线

- 2020: GitHub repository created for the Rust jq clone.
- 2024: v2.0.1 release notes focused on command-line flag behavior such as `--null-input`, `--slurpfile`, and `--from-file`.
- 2025: v2.2.0 release notes recorded path-related language work and noted that jaq-core had been audited by Radically Open Security.
- 2025: v3.0.0-alpha release notes introduced a new manual and support for YAML, CBOR, TOML, and XML under NLnet-backed work.
- 2026: v3.0.0 release notes described multi-format support for YAML, CBOR, TOML, XML, CSV, TSV, and JSON.
- 2026: v3.1.0 release notes added jq's `input_filename` filter and compatibility fixes.

### Related projects

- jaq is directly related to jq, gojq, the jq language specification work linked from its manual, and Rust crates such as `jaq-core`, `jaq-json`, `jaq-all`, and `jaq-fmts`. The README also mentions hifijson as a related parser project with fuzzing history.

### 来源

- <https://api.github.com/repos/01mf02/jaq>
- <https://api.github.com/repos/01mf02/jaq/releases?per_page=10>
- <https://formulae.brew.sh/api/formula/jaq.json>
- <https://gedenkt.at/jaq/manual/>
- <https://github.com/01mf02/jaq>
- <https://raw.githubusercontent.com/01mf02/jaq/main/README.md>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - jaq: normalized package name match | nixpkgs package indexes: pkgs/by-name/ja/jaq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - jaq - 3.1.0-r0: normalized package name match | Alpine Linux edge package indexes: jaq from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | jq clone focused on correctness, speed and simplicity | https://github.com/01mf02/jaq
- apk - jaq-doc - 3.1.0-r0: normalized package name match | Alpine Linux edge package indexes: jaq-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | jq clone focused on correctness, speed and simplicity (documentation) | https://github.com/01mf02/jaq
- pacman - jaq - 3.1.0-3: normalized package name match | Arch Linux sync databases: jaq from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A jq clone focussed on correctness, speed, and simplicity | https://github.com/01mf02/jaq
- zypper - jaq - 2.3.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: jaq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | jq clone in Rust | https://github.com/01mf02/jaq
- MacPorts - jaq: normalized package name match | MacPorts ports tree: textproc/jaq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/jaq: normalized package name match | Scoop official bucket manifest trees: bucket/jaq.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/jaq.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jaq.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
