# 使用 Homebrew, apk, MacPorts, Nix 安装 jsonnet-bundler

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jsonnet-bundler
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jsonnet-bundler
```

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

### Linux

- apk (92%):

```sh
sudo apk add jsonnet-bundler
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#jsonnet-bundler
```

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

## 软件包事实

- **软件包键:** brew:jsonnet-bundler
- **软件包管理器:** Homebrew
- **版本:** 0.6.0
- **来源摘要:** Package manager for Jsonnet
- **主页:** <https://github.com/jsonnet-bundler/jsonnet-bundler>
- **仓库:** <https://github.com/jsonnet-bundler/jsonnet-bundler>
- **最后更新:** 2026-07-26T04:08:08+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jb (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

jsonnet-bundler is the Jsonnet ecosystem's dependency manager. Its `jb` command gives Jsonnet projects a `jsonnetfile.json` manifest and a vendored dependency tree, turning Jsonnet libraries into package-manager-addressable building blocks.

### 项目历史

The jsonnet-bundler repository was created on GitHub on 2018-04-24, and its first commit the same day was titled "Initial commit". The README states the core purpose directly: jsonnet-bundler is a package manager for Jsonnet.

The tool evolved around a deliberately simple model: initialize a project, record dependencies in `jsonnetfile.json`, fetch transitive dependencies, and vendor repository subtrees. Its documented limitations, including whole-repository downloads and same-version requirements for diamond dependencies, show a pragmatic package manager built for Jsonnet library workflows rather than a general dependency solver.

### 采用历史

The README documents package installation through Homebrew, Fedora, and Arch Linux AUR, which reflects adoption beyond source builds. Within Jsonnet projects, its importance comes from standardizing the `jb init` and `jb install` workflow and the convention of running Jsonnet with `-J vendor`.

### 使用方式

A typical project runs `jb init`, gains a `jsonnetfile.json`, installs a dependency from a GitHub repository, imports files from the vendored package, and passes `-J vendor` to Jsonnet so imports resolve through the vendor tree.

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

jsonnet-bundler matters because Jsonnet is often used to manage large configuration trees, and reusable Jsonnet libraries need reproducible dependency layout. For package nerds, `jb` is the small ecosystem-specific manager that makes Jsonnet libraries feel installable instead of copy-pasted.

### 时间线

- 2018-04-24: GitHub repository creation and initial commit.
- 2020-01-08: v0.2.0 release published.
- 2020-05-15: v0.4.0 release published.
- 2024-08-23: v0.6.0 release published.

### Related projects

- jsonnet-bundler is closely tied to Jsonnet itself and to Jsonnet libraries such as kustomize-libsonnet, which the README uses as an install example.

### 来源

- <https://api.github.com/repos/jsonnet-bundler/jsonnet-bundler>
- <https://formulae.brew.sh/formula/jsonnet-bundler>
- <https://github.com/jsonnet-bundler/jsonnet-bundler>
- <https://github.com/jsonnet-bundler/jsonnet-bundler/commit/cb59934d1db4e8f5c2596cfb5f146e680c0ecbb0>
- <https://github.com/jsonnet-bundler/jsonnet-bundler/releases/tag/v0.2.0>
- <https://github.com/jsonnet-bundler/jsonnet-bundler/releases/tag/v0.4.0>
- <https://github.com/jsonnet-bundler/jsonnet-bundler/releases/tag/v0.6.0>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: jsonnetfile.json
## 其他软件包管理器记录

- Nix - jsonnet-bundler: normalized package name match | nixpkgs package indexes: pkgs/by-name/js/jsonnet-bundler/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - jsonnet-bundler - 0.6.0-r16: normalized package name match | Alpine Linux edge package indexes: jsonnet-bundler from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Jsonnet package manager | https://github.com/jsonnet-bundler/jsonnet-bundler
- MacPorts - jsonnet-bundler: normalized package name match | MacPorts ports tree: devel/jsonnet-bundler/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/jsonnet-bundler.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jsonnet-bundler.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
