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

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

## 安装

```sh
sudo av install brew:jsonnet
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jsonnet
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jsonnet
```

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

### Linux

- apk (92%):

```sh
sudo apk add jsonnet
```

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

- Debian apt (92%):

```sh
sudo apt install jsonnet
```

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

- dnf (92%):

```sh
sudo dnf install jsonnet
```

  证据: Fedora Rawhide package metadata: jsonnet 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#jsonnet
```

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

- zypper (92%):

```sh
sudo zypper install golang-github-google-jsonnet
```

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

## 软件包事实

- **软件包键:** brew:jsonnet
- **软件包管理器:** Homebrew
- **版本:** 0.22.0
- **来源摘要:** Domain specific configuration language for defining JSON data
- **主页:** <https://jsonnet.org/>
- **仓库:** <https://github.com/google/jsonnet>
- **最后更新:** 2026-07-24T15:58:49+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jsonnet (别名)
- jsonnetfmt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Jsonnet is a data templating language for generating JSON, YAML, INI, and similar configuration data. It is one of the better-known examples of a configuration DSL that deliberately extends JSON while adding functions, object-oriented composition, imports, a standard library, formatting, and a formal specification.

### 项目历史

The Jsonnet website says the language began in early 2014 as a Google 20 percent project and launched on August 6. The same page explains that its design was influenced by internal Google configuration languages and experience configuring large systems, while also stating that Jsonnet is not an official Google product.

The public google/jsonnet repository's first commit was made on 2014-08-06. A Google Open Source Blog post on 2015-04-20 described Jsonnet as a simple but rich configuration language that had been quietly released a few months earlier and emphasized that valid JSON is also valid Jsonnet.

The original implementation lives in the google/jsonnet repository. The README points users to the Jsonnet website for documentation and names go-jsonnet, the Go implementation, as a faster option for some use cases.

### 采用历史

Jsonnet's adoption grew around infrastructure and configuration workflows where plain JSON was too repetitive but teams still wanted deterministic data generation. The official site describes use by many companies and projects, and the GitHub README documents packaging through Homebrew, MSYS2, PyPI bindings, and vcpkg.

### 使用方式

Users run `jsonnet` on a file or expression to emit JSON, use `jsonnetfmt` to reformat source, and use manifests to generate non-JSON output. The language is side-effect free and designed for modular configuration data rather than general application programming.

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

Jsonnet matters to package nerds because it created a recognizable ecosystem: interpreters, bindings, formatters, package-manager formulas, and Jsonnet-specific dependency tools such as jsonnet-bundler. It is also a useful reference point in debates about JSON-compatible configuration languages versus general-purpose code generation.

### 时间线

- 2014: Jsonnet began in early 2014 as a Google 20 percent project.
- 2014-08-06: Jsonnet launched and the public GitHub repository received its initial commit.
- 2015-04-20: Google Open Source Blog introduced Jsonnet as a richer language for composing JSON.
- 2026-03-24: v0.22.0 release published.

### Related projects

- Jsonnet is directly related to go-jsonnet, jsonnet-bundler, Jsonnet language bindings, jsonnetfmt, and configuration ecosystems that consume generated JSON or YAML.

### 来源

- <https://api.github.com/repos/google/jsonnet>
- <https://formulae.brew.sh/formula/jsonnet>
- <https://github.com/google/jsonnet>
- <https://github.com/google/jsonnet/commit/55002bc60e4679800958828ff1c2da6de7db5007>
- <https://github.com/google/jsonnet/releases/tag/v0.22.0>
- <https://jsonnet.org/>
- <https://jsonnet.org/articles/design.html>
- <https://jsonnet.org/learning/getting_started.html>
- <https://opensource.googleblog.com/2015/04/jsonnet-more-elegant-language-for.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - jsonnet - 0.20.0+ds-3.1: normalized package name match | Debian stable package indexes: jsonnet from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | data templating language | https://github.com/google/jsonnet
- Debian apt - libjsonnet-dev - 0.20.0+ds-3.1: normalized package name match | Debian stable package indexes: libjsonnet-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | data templating language (devel) | https://github.com/google/jsonnet
- Debian apt - libjsonnet0 - 0.20.0+ds-3.1: normalized package name match | Debian stable package indexes: libjsonnet0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | data templating language (lib) | https://github.com/google/jsonnet
- Debian apt - python3-jsonnet - 0.20.0+ds-3.1: normalized package name match | Debian stable package indexes: python3-jsonnet from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | data templating language (Python) | https://github.com/google/jsonnet
- Nix - jsonnet: normalized package name match | nixpkgs package indexes: pkgs/by-name/js/jsonnet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - jsonnet - 0.20.0+ds-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: jsonnet from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | data templating language | https://github.com/google/jsonnet
- Ubuntu apt - libjsonnet-dev - 0.20.0+ds-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libjsonnet-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | data templating language (devel) | https://github.com/google/jsonnet
- Ubuntu apt - libjsonnet0 - 0.20.0+ds-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libjsonnet0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | data templating language (lib) | https://github.com/google/jsonnet
- Ubuntu apt - python3-jsonnet - 0.20.0+ds-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-jsonnet from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | data templating language (Python) | https://github.com/google/jsonnet
- apk - jsonnet - 0.21.0-r0: normalized package name match | Alpine Linux edge package indexes: jsonnet from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The data templating language | https://jsonnet.org/
- apk - jsonnet-dev - 0.21.0-r0: normalized package name match | Alpine Linux edge package indexes: jsonnet-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The data templating language (development files) | https://jsonnet.org/
- apk - jsonnet-libs - 0.21.0-r0: normalized package name match | Alpine Linux edge package indexes: jsonnet-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The data templating language (libraries) | https://jsonnet.org/
- dnf - jsonnet - 0.22.0-15.fc45: normalized package name match | Fedora Rawhide package metadata: jsonnet from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A data templating language based on JSON | https://github.com/google/jsonnet
- dnf - jsonnet-devel - 0.22.0-15.fc45: normalized package name match | Fedora Rawhide package metadata: jsonnet-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development Headers for jsonnet | https://github.com/google/jsonnet
- dnf - jsonnet-doc - 0.22.0-15.fc45: normalized package name match | Fedora Rawhide package metadata: jsonnet-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation for jsonnet | https://github.com/google/jsonnet
- dnf - jsonnet-libs - 0.22.0-15.fc45: normalized package name match | Fedora Rawhide package metadata: jsonnet-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Shared Libraries for jsonnet | https://github.com/google/jsonnet


## Combined YAML source

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