# 使用 Homebrew, apk, chocolatey, Nix, pacman, zypper, scoop, winget 安装 syft

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

## 安装

```sh
sudo av install brew:syft
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install syft
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add syft
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#syft
```

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

- pacman (92%):

```sh
sudo pacman -S syft
```

  证据: Arch Linux sync databases: syft from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install syft
```

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

### Windows

- Chocolatey (92%):

```sh
choco install syft
```

  证据: Chocolatey community package catalog: syft from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','striata-reader'

- Scoop (92%):

```sh
scoop install main/syft
```

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

- winget (92%):

```sh
winget install --id Anchore.Syft -e
```

  证据: Windows Package Manager source index: Anchore.Syft from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:syft
- **软件包管理器:** Homebrew
- **版本:** 1.50.0
- **来源摘要:** CLI for generating a Software Bill of Materials from container images
- **主页:** <https://github.com/anchore/syft>
- **仓库:** <https://github.com/anchore/syft>
- **最后更新:** 2026-07-28T19:44:46Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- syft (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Syft is Anchore's CLI tool and Go library for generating software bills of materials from container images, filesystems, archives, and related sources. It became a familiar supply-chain-security package because it turns SBOM generation into a one-command workflow with common package-manager distribution.

### 项目历史

The upstream README describes Syft as an SBOM generator for container images and filesystems and emphasizes use with Anchore's Grype scanner. The project supports many package ecosystems, image formats, and SBOM formats, including CycloneDX, SPDX, and Syft JSON.

### 采用历史

Syft is distributed through Homebrew, Chocolatey, Scoop, winget, Nix, Arch, Alpine, and openSUSE according to the input package facts, and its README points to official installation docs with Homebrew, Docker, Scoop, Chocolatey, Nix, and other methods. The GitHub project page shows a large public repository with thousands of stars and hundreds of forks.

### 使用方式

Common usage is to scan a container image, filesystem, or archive and emit an SBOM in a requested format, then feed the result into vulnerability scanning, attestations, or policy workflows. The wiki covers configuration, supported sources, output formats, private registry authentication, templates, multiple outputs, and attestation.

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

Package nerds care because Syft catalogs package metadata across ecosystems: apk, dpkg, RPM, Go, Python, Java, JavaScript, Ruby, Rust, PHP, .NET, and more. It is both a consumer of package-manager metadata and a package-manager-distributed security tool, which makes it central to modern SBOM and provenance workflows.

### 时间线

- v0.1.0 era: The upstream repository exposes early v0.1.x release tags.
- 2024: The GitHub wiki home page was edited November 1, 2024 and organizes Syft docs around installation, supported sources, output formats, private registry authentication, attestation, and configuration.
- Current README era: The upstream README points new users to official Syft docs and documents supported ecosystems, image formats, and SBOM formats.

### Related projects

- Related Anchore projects include Grype for vulnerability scanning. Related standards and formats include SPDX, CycloneDX, in-toto attestations, OCI/Docker images, and package metadata from many language and OS ecosystems.

### 来源

- <https://github.com/anchore/syft>
- <https://github.com/anchore/syft/blob/main/README.md>
- <https://github.com/anchore/syft/wiki>
- <https://oss.anchore.com/syft/>
- source_facts.executables
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- 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: ./.syft.yaml, ./.syft/config.yaml, ~/.syft.yaml, $XDG_CONFIG_HOME/syft/config.yaml
## 其他软件包管理器记录

- Nix - syft: normalized package name match | nixpkgs package indexes: pkgs/by-name/sy/syft/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - syft - 1.46.0-r1: normalized package name match | Alpine Linux edge package indexes: syft from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Generate a Software Bill of Materials (SBOM) from container images and filesystems | https://github.com/anchore/syft
- apk - syft-bash-completion - 1.46.0-r1: normalized package name match | Alpine Linux edge package indexes: syft-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for syft | https://github.com/anchore/syft
- apk - syft-fish-completion - 1.46.0-r1: normalized package name match | Alpine Linux edge package indexes: syft-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for syft | https://github.com/anchore/syft
- apk - syft-zsh-completion - 1.46.0-r1: normalized package name match | Alpine Linux edge package indexes: syft-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for syft | https://github.com/anchore/syft
- pacman - syft - 1.46.0-1: normalized package name match | Arch Linux sync databases: syft from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | CLI tool and library for generating a Software Bill of Materials from container images and filesystems | https://github.com/anchore/syft
- zypper - syft - 1.50.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: syft from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CLI tool and library for generating a Software Bill of Materials | https://github.com/anchore/syft
- zypper - syft-bash-completion - 1.50.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: syft-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for syft | https://github.com/anchore/syft
- zypper - syft-fish-completion - 1.50.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: syft-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for syft | https://github.com/anchore/syft
- zypper - syft-zsh-completion - 1.50.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: syft-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for syft | https://github.com/anchore/syft
- Chocolatey - syft: normalized package name match | Chocolatey community package catalog: syft from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','striata-reader'
- Scoop - main/syft: normalized package name match | Scoop official bucket manifest trees: bucket/syft.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Anchore.Syft: normalized package name match | Windows Package Manager source index: Anchore.Syft from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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