# 使用 Homebrew, Nix 安装 cyclonedx-gomod

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

## 安装

```sh
sudo av install brew:cyclonedx-gomod
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cyclonedx-gomod
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cyclonedx-gomod
```

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

## 软件包事实

- **软件包键:** brew:cyclonedx-gomod
- **软件包管理器:** Homebrew
- **版本:** 1.10.0
- **来源摘要:** Creates CycloneDX Software Bill of Materials (SBOM) from Go modules
- **主页:** <https://cyclonedx.org/>
- **仓库:** <https://github.com/CycloneDX/cyclonedx-gomod>
- **最后更新:** 2026-07-25T14:20:52-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cyclonedx-gomod (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

cyclonedx-gomod is the CycloneDX command-line generator for Go modules, applications, and Go binaries.

### 项目历史

The repository was created in March 2021, during the period when CycloneDX was moving from its original SBOM format toward richer supply-chain metadata. Its early releases established the Go-specific generator role, while later versions tracked newer CycloneDX specification versions and Go build-model details.

### 采用历史

The official CycloneDX tool center lists CycloneDX for Go modules as an open-source command-line utility and Go library, and the README documents Homebrew, GitHub release binaries, and go install as installation paths. That combination made it a natural fit for CI, GoReleaser, and distribution workflows.

### 使用方式

cyclonedx-gomod offers app, mod, and bin subcommands so users can choose between SBOMs for built applications, whole modules, or existing Go binaries. It accounts for Go build constraints such as GOARCH, GOOS, CGO_ENABLED, and GOFLAGS when producing application SBOMs.

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

For package managers and release engineers, cyclonedx-gomod is interesting because Go's module graph, build tags, and embedded module metadata affect what should appear in an SBOM; the tool encodes those Go-specific rules instead of treating Go projects as generic source trees.

### 时间线

- 2021: Repository created and v0.1.0 released.
- 2024: Releases tracked CycloneDX 1.6-era output support.
- 2026: v1.10.0 release line remained active.

### Related projects

- Related CycloneDX tools include cyclonedx-cli for BOM manipulation and cyclonedx-python for Python environments and manifests.

### 来源

- <https://github.com/CycloneDX/cyclonedx-gomod/blob/main/README.md>
- <https://api.github.com/repos/CycloneDX/cyclonedx-gomod>
- <https://github.com/CycloneDX/cyclonedx-gomod/releases>
- <https://cyclonedx.org/tool-center/>
- <https://cyclonedx.org/about/history/>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - cyclonedx-gomod: normalized package name match | nixpkgs package indexes: pkgs/by-name/cy/cyclonedx-gomod/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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