Automic VaultAutomic Vault

brew

gojq を Homebrew, apk, apt, dnf, MacPorts, Nix, zypper でインストール

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/gojq信頼度 none

インストールメタデータ

パッケージメタデータ

パッケージキー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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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