# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/jsonnet-bundler>
- **版本:** 0.6.0
- **来源摘要:** Package manager for Jsonnet
- **主页:** <https://github.com/jsonnet-bundler/jsonnet-bundler>
- **仓库:** <https://github.com/jsonnet-bundler/jsonnet-bundler>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/jsonnet-bundler/jsonnet-bundler.git>
- **最后更新:** 2026-07-26T04:08:08+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- jb (cli)
- jb (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.6.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/jsonnet-bundler/jsonnet-bundler
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** jsonnet-bundler
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [luarocks](https://pkg.so/zh-hans/brew/luarocks/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, package-manager.
- [clib](https://pkg.so/zh-hans/brew/clib/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, package-manager.
- [rv](https://pkg.so/zh-hans/brew/rv/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [cabin](https://pkg.so/zh-hans/brew/cabin/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [scarb](https://pkg.so/zh-hans/brew/scarb/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [poetry](https://pkg.so/zh-hans/brew/poetry/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, package-manager.
- [opam](https://pkg.so/zh-hans/brew/opam/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, package-manager.
- [pdm](https://pkg.so/zh-hans/brew/pdm/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, package-manager.
- [mint](https://pkg.so/zh-hans/brew/mint/) - Local package facts share a topical domain. Shared terms: cli, dependency, developer, developer-tools, management.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
