Automic VaultAutomic Vault

brew

Install gojq with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Pure Go implementation of jq. Version 0.12.19 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gojq

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gojq

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

Linux

Alpine Linux apkverified · 92%
sudo apk add gojq

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

Debian aptverified · 92%
sudo apt install gojq

Debian stable package indexes · gojq · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install gojq

Fedora Rawhide package metadata · gojq · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#gojq

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

openSUSE zypperverified · 92%
sudo zypper install gojq

openSUSE Tumbleweed package metadata · gojq · source: download.opensuse.org

overview

Package summary

Pure Go implementation of jq

Commands and aliases

  • gojq

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gojqcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.12.19
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/itchyny/gojq

  • infoNo package-manager update timestamp was available.low confidence
  • infoNo cached GitHub release or tag data was available.https://github.com/itchyny/gojqnone confidence

install metadata

Package metadata

Package keybrew:gojq
Version0.12.19
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gojq
Homepagehttps://github.com/itchyny/gojq
Repositoryhttps://github.com/itchyny/gojq
Upstream docshttps://github.com/itchyny/gojq#readme
LicenseMIT
Source archivehttps://github.com/itchyny/gojq.git
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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
  • Matched by: 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
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: 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 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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