# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cyclonedx-gomod>
- **版本:** 1.10.0
- **来源摘要:** Creates CycloneDX Software Bill of Materials (SBOM) from Go modules
- **主页:** <https://cyclonedx.org/>
- **仓库:** <https://github.com/CycloneDX/cyclonedx-gomod>
- **上游文档:** <https://cyclonedx.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/CycloneDX/cyclonedx-gomod.git>
- **最后更新:** 2026-07-25T14:20:52-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cyclonedx-gomod (cli)
- cyclonedx-gomod (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cyclonedx-gomod
- **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 - 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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [cyclonedx-cli](https://pkg.so/zh-hans/brew/cyclonedx-cli/) - Shares the same upstream homepage.
- [cyclonedx-python](https://pkg.so/zh-hans/brew/cyclonedx-python/) - Shares the same upstream homepage.
- [cargo-cyclonedx](https://pkg.so/zh-hans/brew/cargo-cyclonedx/) - Shares the same upstream homepage.
- [cyclonedx-npm](https://pkg.so/zh-hans/brew/cyclonedx-npm/) - Shares pkgdb curated category or tags: cli, cyclonedx, sbom, security, software-supply-chain.
- [sbom-tool](https://pkg.so/zh-hans/brew/sbom-tool/) - Shares pkgdb curated category or tags: cli, sbom, security, software-supply-chain.
- [bomctl](https://pkg.so/zh-hans/brew/bomctl/) - Shares pkgdb curated category or tags: cli, cyclonedx, sbom, security, software-supply-chain.
- [cdxgen](https://pkg.so/zh-hans/brew/cdxgen/) - Shares pkgdb curated category or tags: cli, cyclonedx, sbom, security, software-supply-chain.
- [chainloop-cli](https://pkg.so/zh-hans/brew/chainloop-cli/) - Shares pkgdb curated category or tags: cli, sbom, security, software-supply-chain.

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