macOS
brew install trivylocal Homebrew formula metadata
sudo port install trivyMacPorts ports tree · security/trivy/Portfile · 来源: api.github.com
安装
brew install trivylocal Homebrew formula metadata
sudo port install trivyMacPorts ports tree · security/trivy/Portfile · 来源: api.github.com
sudo apk add trivyAlpine Linux edge package indexes · trivy · 来源: dl-cdn.alpinelinux.org
sudo dnf install trivyFedora Rawhide package metadata · trivy · 来源: dl.fedoraproject.org
nix profile install nixpkgs#trivynixpkgs package indexes · pkgs/by-name/tr/trivy/package.nix · 来源: api.github.com
sudo pacman -S trivyArch Linux sync databases · trivy · 来源: geo.mirror.pkgbuild.com
sudo zypper install trivyopenSUSE Tumbleweed package metadata · trivy · 来源: download.opensuse.org
choco install trivyChocolatey community package catalog · trivy · 来源: community.chocolatey.org
scoop install main/trivyScoop official bucket manifest trees · bucket/trivy.json · 来源: api.github.com
winget install --id AquaSecurity.Trivy -eWindows Package Manager source index · AquaSecurity.Trivy · 来源: cdn.winget.microsoft.com
概览
Vulnerability scanner for container images, file systems, and Git repos
历史
Trivy is Aqua Security's open-source security scanner. It began public life in the container-image vulnerability scanning niche and is now documented as a comprehensive scanner for container images, filesystems, Git repositories, VM images, and Kubernetes.
Aqua's official blog announced on August 19, 2019 that Trivy, described there as a popular open-source container image vulnerability scanner, had joined the Aqua open-source family. The current project README shows how the scope expanded: Trivy now has multiple target types and scanners, including vulnerabilities, SBOM/package inventory, IaC misconfiguration, secrets, and license scanning.
That expansion mirrors the wider cloud-native security shift from image scanning as a point task to supply-chain and runtime-adjacent checks in CI, repositories, Kubernetes clusters, and local filesystems. Trivy's own docs and README frame it as a single CLI front end for those related checks rather than a collection of separate tools.
The official homepage calls Trivy the most popular open-source security scanner for vulnerability scanning, IaC, SBOM discovery, cloud scanning, and Kubernetes security. The README lists integrations with GitHub Actions, the Trivy Kubernetes operator, and a VS Code extension, while the installation docs distinguish official and community install channels.
Homebrew adoption fits the way Trivy is commonly used: installed as a local CLI for developers and CI authors, run in Docker for pipeline isolation, and embedded into GitHub Actions or Kubernetes workflows for continuous scanning. Its package-manager presence is not ornamental; the package is a common entry point for trying a scanner before wiring it into automation.
The README's general pattern is `trivy <target> [--scanners <scanner1,scanner2>] <subject>`. Examples include `trivy image python:3.4-alpine`, filesystem scans such as `trivy fs --scanners vuln,secret,misconfig myproject/`, and Kubernetes scans such as `trivy k8s --report summary cluster`.
In the package-nerd niche, Trivy is often used to inspect what a package, container image, repository, lockfile, or cluster would expose to a vulnerability database or policy scanner. The same executable can produce quick local answers and also serve as the scanner behind CI jobs, image-registry checks, and Kubernetes security reports.
Trivy is significant because it connects package metadata to security outcomes. It reads OS packages and language dependencies, maps them to CVEs and other findings, and can emit SBOM-centered views. For people who track package ecosystems, it is both a user-facing CLI and a packaging/data-source stress test across distros, language lockfiles, images, and repositories.
It is also a good example of a security CLI becoming infrastructure: package managers install it, CI systems wrap it, Kubernetes operators schedule it, and downstream tools consume its reports. That makes its history more important than a normal formula entry.
安全态势
broad file, network, media, or database tool signal. escape, surveillance, or offensive capability signal.
red 风险 · 中 置信度 · escape-surveillance-offensive
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
trivy.yaml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
trivy | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/aquasecurity/trivy
安装元数据
| 软件包键 | brew:trivy |
|---|---|
| 版本 | 0.72.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/trivy |
| 主页 | https://trivy.dev/ |
| 仓库 | https://github.com/aquasecurity/trivy |
| 上游文档 | https://trivy.dev/latest |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/aquasecurity/trivy/archive/refs/tags/v0.72.0.tar.gz |
| 最后更新 | 2026-06-30T10:15:59Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | trivy |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
trivy
nix profile install nixpkgs#trivytrivy 0.71.0-r0
Simple and comprehensive vulnerability scanner for containers
https://github.com/aquasecurity/trivy
sudo apk add trivytrivy 0.69.3-1.fc45
Vulnerability and license scanner
https://github.com/aquasecurity/trivy
sudo dnf install trivytrivy 0.71.1-1
A Simple and Comprehensive Vulnerability Scanner for Containers, Suitable for CI
https://github.com/aquasecurity/trivy
sudo pacman -S trivytrivy 0.71.0-1.1
A Simple and Comprehensive Vulnerability Scanner for Containers
https://github.com/aquasecurity/trivy
sudo zypper install trivytrivy
sudo port install trivytrivy
choco install trivymain/trivy
scoop install main/trivyAquaSecurity.Trivy
winget install --id AquaSecurity.Trivy -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.