# 使用 Homebrew, Nix, zypper, scoop 安装 bom

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

## 安装

```sh
sudo av install brew:bom
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bom
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bom
```

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

- zypper (92%):

```sh
sudo zypper install bom
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/bom
```

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

## 软件包事实

- **软件包键:** brew:bom
- **软件包管理器:** Homebrew
- **版本:** 0.7.1
- **来源摘要:** Utility to generate SPDX-compliant Bill of Materials manifests
- **主页:** <https://kubernetes-sigs.github.io/bom/>
- **仓库:** <https://github.com/kubernetes-sigs/bom>
- **最后更新:** 2026-07-26T10:56:34+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bom (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

bom is the Kubernetes SIGs SBOM multitool for creating, viewing, and transforming Software Bills of Materials, especially SPDX documents.

### 项目历史

The official README says bom was created as part of the effort to create an SBOM for the Kubernetes project. It later became a general-purpose CLI that can generate SPDX packages from directories, container images, single files, archives, and other sources.

The project is associated with the Linux Foundation's Automating Compliance Tooling Technical Advisory Council, placing it in the supply-chain compliance tooling ecosystem rather than only in Kubernetes internals.

### 采用历史

bom's adoption follows the post-SolarWinds supply-chain tooling wave: SBOMs became expected release artifacts, and Kubernetes needed tooling that could fit CI, container images, Go dependency analysis, SPDX output, and in-toto provenance workflows. The input package facts list Homebrew, Nix, Scoop, and zypper packaging.

### 使用方式

Common usage is `bom generate` against a directory, file list, archive, or image, then `bom document` to inspect or query the resulting SPDX document. The README also documents license classification, `.gitignore` support, Go dependency analysis, and provenance export.

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

bom is package-nerd significant because it is tooling about packages themselves: it turns source trees, images, and dependencies into machine-readable supply-chain metadata. It sits where package management, compliance, SPDX, Kubernetes release engineering, and container provenance meet.

### 时间线

- 2021: bom appears in Kubernetes SIG tooling around the Kubernetes SBOM effort.
- 2020s: bom grows into a general-purpose SPDX SBOM generator for files, directories, archives, container images, and Go dependencies.
- 2020s: The project is incubated under the Linux Foundation Automating Compliance Tooling TAC.

### Related projects

- Related projects include Kubernetes, SPDX, in-toto, Syft, CycloneDX tooling, cosign, and other software supply-chain inventory tools.

### 来源

- <https://github.com/kubernetes-sigs/bom#readme>
- <https://kubernetes-sigs.github.io/bom>
- input.source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - bom: normalized package name match | nixpkgs package indexes: pkgs/by-name/bo/bom/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - bom - 1.0.1-1.17: normalized package name match | openSUSE Tumbleweed package metadata: bom from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Deals with Unicode byte order marks | https://github.com/archiecobbs/bom
- Scoop - main/bom: normalized package name match | Scoop official bucket manifest trees: bucket/bom.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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