# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 jo

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

## 安装

```sh
sudo av install brew:jo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jo
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jo
```

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

### Linux

- apk (92%):

```sh
sudo apk add jo
```

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

- Debian apt (92%):

```sh
sudo apt install jo
```

  证据: Debian stable package indexes: jo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install jo
```

  证据: Fedora Rawhide package metadata: jo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#jo
```

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

- pacman (92%):

```sh
sudo pacman -S jo
```

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

- zypper (92%):

```sh
sudo zypper install jo
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/jo
```

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

- winget (92%):

```sh
winget install --id jpmens.jo -e
```

  证据: Windows Package Manager source index: jpmens.jo from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:jo
- **软件包管理器:** Homebrew
- **版本:** 1.9
- **来源摘要:** JSON output from a shell
- **主页:** <https://github.com/jpmens/jo>
- **仓库:** <https://github.com/jpmens/jo>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

jo is a small C command-line utility for producing JSON from shell arguments or standard input. Jan-Piet Mens introduced it in March 2016 as a response to the awkwardness of hand-writing JSON in shell scripts, and the repository describes it plainly as JSON output from a shell.

### 项目历史

The GitHub repository was created on March 4, 2016, and Jan-Piet Mens published a companion article on March 5 explaining the motivation: producing valid JSON from shell scripts becomes hard once quoting, variables, and embedded strings enter the picture. The early 0.x releases followed within days, and 1.0 arrived on March 11, 2016.

The changelog shows a project that grew carefully around shell ergonomics: nested elements, pretty printing, booleans, file inclusion, OpenBSD pledge support, type coercion, object paths, Docker support, array reading, zsh completion, Meson support, and fixes for Windows and long-line stdin handling.

### 采用历史

jo spread through package managers because it solves a narrow shell-scripting pain point without pulling in a large runtime. Its README lists Homebrew, MacPorts, Ubuntu, Gentoo, Fedora, Snap, Scoop, AIX, Void Linux, Arch, OpenBSD, FreeBSD, Guix, pkgsrc, Repology, and Docker as distribution routes or related package entries.

### 使用方式

Users call jo with key=value words to emit JSON objects, use -a for arrays, -p for pretty output, and type prefixes or special value forms when they need stronger control over numbers, booleans, nulls, file contents, or nested data. It is commonly paired with shell scripts, HTTP clients, monitoring hooks, and other command-line pipelines.

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

jo is package-nerd significant because it is the Unix philosophy version of JSON generation: small, composable, scriptable, packaged almost everywhere, and complementary to jq. It sits in the gap between fragile echo/printf JSON and starting a Python, Ruby, Node, or jq program just to build an object.

### 时间线

- 2016: Repository created and 0.3 through 1.0 releases published in March.
- 2017: 1.1 adds type coercion and more test coverage.
- 2018: 1.2 adds object-path support and Dockerfile work.
- 2019: 1.3 adds JSON array reading and nested-data-from-pipes support.
- 2020: 1.4 includes build and documentation fixes.
- 2022: 1.5 through 1.9 add zsh completion, Meson work, Windows fixes, output-file support, and long-line stdin fixes.

### Related projects

- jq is the natural counterpart for consuming and transforming JSON in shell pipelines.
- The jo README names related JSON-building tools including gjo, rjo, jjo, jf, and gojo.

### 来源

- The README supplies the package-manager spread, examples, related projects, and link to the author's origin article.
- The changelog and GitHub releases supply the release timeline.
- The manpage supplies the argument and type-coercion behavior.


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

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

- Debian apt - jo - 1.9-2: normalized package name match | Debian stable package indexes: jo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line processor to output JSON from a shell | https://github.com/jpmens/jo
- Nix - jo: normalized package name match | nixpkgs package indexes: pkgs/by-name/jo/jo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - jo - 1.9-1: normalized package name match | Ubuntu 24.04 LTS package indexes: jo from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line processor to output JSON from a shell | https://github.com/jpmens/jo
- apk - jo - 1.9-r2: normalized package name match | Alpine Linux edge package indexes: jo from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | JSON output from a shell | https://github.com/jpmens/jo
- apk - jo-bash-completion - 1.9-r2: normalized package name match | Alpine Linux edge package indexes: jo-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for jo | https://github.com/jpmens/jo
- apk - jo-doc - 1.9-r2: normalized package name match | Alpine Linux edge package indexes: jo-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | JSON output from a shell (documentation) | https://github.com/jpmens/jo
- apk - jo-zsh-completion - 1.9-r2: normalized package name match | Alpine Linux edge package indexes: jo-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for jo | https://github.com/jpmens/jo
- dnf - jo - 1.9-21.fc45: normalized package name match | Fedora Rawhide package metadata: jo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Small utility to create JSON objects | https://github.com/jpmens/jo
- pacman - jo - 1.9-3: normalized package name match | Arch Linux sync databases: jo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | JSON output from a shell | https://github.com/jpmens/jo
- zypper - jo - 1.9-1.12: normalized package name match | openSUSE Tumbleweed package metadata: jo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | JSON output from a shell | https://github.com/jpmens/jo/
- zypper - jo-bash-completion - 1.9-1.12: normalized package name match | openSUSE Tumbleweed package metadata: jo-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for jo | https://github.com/jpmens/jo/
- zypper - jo-zsh-completion - 1.9-1.12: normalized package name match | openSUSE Tumbleweed package metadata: jo-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ZSH completion for jo | https://github.com/jpmens/jo/
- MacPorts - jo: normalized package name match | MacPorts ports tree: textproc/jo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/jo: normalized package name match | Scoop official bucket manifest trees: bucket/jo.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - jpmens.jo: normalized package name match | Windows Package Manager source index: jpmens.jo from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/jo.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jo.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
