macOS
brew install jqlocal Homebrew formula metadata
sudo port install jqMacPorts ports tree · sysutils/jq/Portfile · 来源: api.github.com
安装
brew install jqlocal Homebrew formula metadata
sudo port install jqMacPorts ports tree · sysutils/jq/Portfile · 来源: api.github.com
sudo apk add jqAlpine Linux edge package indexes · jq · 来源: dl-cdn.alpinelinux.org
sudo dnf install jqFedora Rawhide package metadata · jq · 来源: dl.fedoraproject.org
nix profile install nixpkgs#jqnixpkgs package indexes · pkgs/by-name/jq/jq/package.nix · 来源: api.github.com
sudo pacman -S jqArch Linux sync databases · jq · 来源: geo.mirror.pkgbuild.com
sudo zypper install jqopenSUSE Tumbleweed package metadata · jq · 来源: download.opensuse.org
choco install jqChocolatey community package catalog · jq · 来源: community.chocolatey.org
scoop install main/jqScoop official bucket manifest trees · bucket/jq.json · 来源: api.github.com
winget install --id jqlang.jq -eWindows Package Manager source index · jqlang.jq · 来源: cdn.winget.microsoft.com
概览
Lightweight and flexible command-line JSON processor
历史
jq is the canonical command-line JSON processor: a small C program and language for slicing, filtering, mapping, and transforming structured JSON data. The official site describes it as doing for JSON what `sed`, `awk`, `grep`, and related tools do for text.
jq was created by Stephen Dolan and grew into a standalone query language with filters, pipes, generators, functions, modules, streaming input, and a C library. Its zero-runtime-dependency binary made it easy to distribute in scripts, containers, CI jobs, and production debugging environments.
The public release line was already established by jq 1.3 in May 2013 and jq 1.4 in June 2014. jq 1.5 in August 2015 added substantial language features including datetime, math, regular-expression functions, try/catch syntax, destructuring, a streaming parser, and a module system. jq 1.6 followed in November 2018.
After a five-year gap, jq governance moved into the jqlang GitHub organization. The 1.7 release in September 2023 credited the new organization, new maintainers and admins, Stephen Dolan's repository transfer, updated CI and release infrastructure, broader platform binaries, Docker images from GitHub Container Registry, and OSS-Fuzz integration.
jq became a default tool for API users, shell programmers, SREs, CI maintainers, and package authors because JSON became the lingua franca of web APIs and cloud CLIs. It is packaged across Homebrew, Linux distributions, MacPorts, Nix, Chocolatey, Scoop, winget, and other ecosystems, and its filters are routinely embedded in documentation and automation snippets.
Common usage ranges from pretty-printing and extracting fields to reshaping API responses, validating shell pipeline output, transforming config data, and writing reusable jq modules. Its single-binary distribution model also makes it popular in containers and remote machines where installing a language runtime would be heavier.
jq is one of the defining package-manager CLIs of the JSON era. Package nerds care about it because it is both a tiny executable and a language ecosystem: build systems depend on it, tests shell out to it, release pipelines parse with it, and downstream tools such as gojq, jaq, fq, jq-lsp, playgrounds, and editor integrations orbit its syntax and behavior.
审批门
本地审批门种子包含 3 条适用于 jq 的规则。覆盖的入口点:jq。严重级别:低, 中。覆盖状态:partial,审核于 2026-05-21。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
jq | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:jq |
|---|---|
| 版本 | 1.8.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/jq |
| 主页 | https://jqlang.github.io/jq/ |
| 仓库 | https://github.com/jqlang/jq |
| 上游文档 | https://jqlang.github.io/jq/manual |
| 许可证 | MIT |
| 源码归档 | https://github.com/jqlang/jq/releases/download/jq-1.8.2/jq-1.8.2.tar.gz |
| 最后更新 | 2026-06-20T16:30:04Z |
| Pulse | updated |
| 依赖 | oniguruma |
| 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 | jq |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
jq 1.7.1-6+deb13u2
lightweight and flexible command-line JSON processor
sudo apt install jqlibjq-dev 1.7.1-6+deb13u2
lightweight and flexible command-line JSON processor - development files
sudo apt install libjq-devlibjq1 1.7.1-6+deb13u2
lightweight and flexible command-line JSON processor - shared library
sudo apt install libjq1jq
nix profile install nixpkgs#jqjq 1.7.1-3build1
lightweight and flexible command-line JSON processor
sudo apt install jqlibjq-dev 1.7.1-3build1
lightweight and flexible command-line JSON processor - development files
sudo apt install libjq-devlibjq1 1.7.1-3build1
lightweight and flexible command-line JSON processor - shared library
sudo apt install libjq1jq 1.8.1-r0
A lightweight and flexible command-line JSON processor
sudo apk add jqjq-dev 1.8.1-r0
A lightweight and flexible command-line JSON processor (development files)
sudo apk add jq-devjq-doc 1.8.1-r0
A lightweight and flexible command-line JSON processor (documentation)
sudo apk add jq-docjq 1.8.1-3.fc45
Command-line JSON processor
sudo dnf install jqjq-devel 1.8.1-3.fc45
Development files for jq
sudo dnf install jq-develjq 1.8.1-3
Command-line JSON processor
sudo pacman -S jqjq 1.8.1-3.1
A lightweight and flexible command-line JSON processor
sudo zypper install jqlibjq-devel 1.8.1-3.1
Development files for jq
sudo zypper install libjq-devellibjq1 1.8.1-3.1
Library for a lightweight and flexible command-line JSON processor
sudo zypper install libjq1来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.