Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 gojq

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gojq

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gojq

MacPorts ports tree · textproc/gojq/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gojq

Alpine Linux edge package indexes · gojq · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install gojq

Debian stable package indexes · gojq · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install gojq

Fedora Rawhide package metadata · gojq · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#gojq

nixpkgs package indexes · pkgs/by-name/go/gojq/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install gojq

openSUSE Tumbleweed package metadata · gojq · 来源: download.opensuse.org

概览

软件包摘要

Pure Go implementation of jq

命令和别名

  • gojq

历史

项目历史与用法

gojq is a pure Go implementation of jq, the JSON query language and command-line processor. It can run as a command and can also be embedded as a Go library.

The project is valuable where jq compatibility is wanted without C-library and regex-library build dependencies, or where Go programs want an in-process jq-like query engine.

项目历史

The repository began in April 2019 with commits implementing the parser, runner, and CLI. The README frames the project as a jq implementation written in Go and documents both command usage and library APIs.

The release stream moved quickly through 0.x versions in 2019 and 2020, with v0.12.0 appearing in December 2020. Subsequent v0.12 patch releases continued the long maintenance line.

采用历史

gojq's package-manager adoption follows its portability story. The input package facts list apk, Homebrew, Debian, dnf, MacPorts, Nix, Ubuntu, and zypper packages, which fits a small CLI used across many Unix-like systems.

The README advertises installation through Homebrew, mise, Zero Install, go install, and Docker images. That broad install surface reflects both command-line use and reproducible automation contexts.

使用方式

At the command line, gojq reads JSON and applies jq filters such as .foo, .a.b, object construction, updates, and pipelines. The README highlights useful differences including arbitrary-precision integer calculations, YAML input/output options, and detailed error positions.

As a library, callers parse a query with gojq.Parse, run it against values decoded into []any or map[string]any, and iterate over results. Compile options cover module loading, environment loading, variables, custom functions, and input iterators.

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

gojq is significant because it ports one of the most package-manager-loved Unix data tools into a single Go build. That makes static or cross-platform distribution easier than the C jq stack in many environments.

It also exposes the tension in compatibility implementations: the README documents intentional differences from jq, including map ordering, unsupported flags, regex-engine differences, YAML support, and arbitrary-precision integers.

时间线

  • 2019: Repository starts with parser, runner, and CLI implementation commits.
  • 2019: v0.0.1 and v0.1.0 tags appear in April and May.
  • 2020: v0.12.0 tag appears in December after rapid 0.x development.
  • 2024: v0.12.17 tag appears in the continuing v0.12 maintenance series.

Related projects

  • jq is the original command and language that gojq implements.
  • The Go standard library's encoding/json is relevant because gojq's library API expects generic decoded JSON-like Go values.
  • mise and Docker are documented installation surfaces alongside package-manager installs.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gojqcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.12.19
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/itchyny/gojq

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息No cached GitHub release or tag data was available.https://github.com/itchyny/gojqnone 置信度

安装元数据

软件包元数据

软件包键brew:gojq
版本0.12.19
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gojq
主页https://github.com/itchyny/gojq
仓库https://github.com/itchyny/gojq
上游文档https://github.com/itchyny/gojq#readme
许可证MIT
源码归档https://github.com/itchyny/gojq.git
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegojq
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

gojq 0.12.13-1

pure Go implementation of jq (program)

https://github.com/itchyny/gojq

sudo apt install gojq
  • Section: golang
  • Architecture: amd64
  • normalized package name match
  • 匹配方式:Gojq
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gojq from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

golang-github-itchyny-gojq-dev 0.12.13-1

pure Go implementation of jq (library)

https://github.com/itchyny/gojq

sudo apt install golang-github-itchyny-gojq-dev
  • Section: golang
  • Architecture: all
  • Source Package: gojq
  • 5 依赖
  • normalized package name match
  • 匹配方式:Gojq
Debian stable package indexes · deb.debian.org · Debian stable package indexes: golang-github-itchyny-gojq-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gojq

nix profile install nixpkgs#gojq
  • normalized package name match
  • 匹配方式:Gojq
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/go/gojq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

gojq 0.12.13-1

pure Go implementation of jq (program)

https://github.com/itchyny/gojq

sudo apt install gojq
  • Section: universe/golang
  • Architecture: amd64
  • normalized package name match
  • 匹配方式:Gojq
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gojq from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

golang-github-itchyny-gojq-dev 0.12.13-1

pure Go implementation of jq (library)

https://github.com/itchyny/gojq

sudo apt install golang-github-itchyny-gojq-dev
  • Section: universe/golang
  • Architecture: all
  • Source Package: gojq
  • 5 依赖
  • normalized package name match
  • 匹配方式:Gojq
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: golang-github-itchyny-gojq-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gojq 0.12.19-r2

Pure Go implementation of jq

https://github.com/itchyny/gojq

sudo apk add gojq
  • License: MIT
  • Architecture: x86_64
  • Source Package: gojq
  • 1 提供
  • normalized package name match
  • 匹配方式:Gojq
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gojq from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

gojq-zsh-completion 0.12.19-r2

Zsh completions for gojq

https://github.com/itchyny/gojq

sudo apk add gojq-zsh-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: gojq
  • normalized package name match
  • 匹配方式:Gojq
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gojq-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

gojq 0.12.19-2.fc45

Pure Go implementation of jq

https://github.com/itchyny/gojq

sudo dnf install gojq
  • License: Apache-2.0 AND BSD-3-Clause AND MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gojq
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gojq
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gojq from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

gojq 0.12.19-1.2

Pure Go implementation of jq

https://github.com/itchyny/gojq

sudo zypper install gojq
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gojq
  • 1 提供
  • normalized package name match
  • 匹配方式:Gojq
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gojq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

gojq

sudo port install gojq
  • normalized package name match
  • 匹配方式:Gojq
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/gojq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment