# 使用 Homebrew, Nix, zypper, pacman 安装 chart-testing

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

## 安装

```sh
sudo av install brew:chart-testing
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install chart-testing
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#chart-testing
```

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

- zypper (92%):

```sh
sudo zypper install chart-testing
```

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

- pacman (92%):

```sh
sudo pacman -S ct
```

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

## 软件包事实

- **软件包键:** brew:chart-testing
- **软件包管理器:** Homebrew
- **版本:** 3.14.0
- **来源摘要:** Testing and linting Helm charts
- **主页:** <https://github.com/helm/chart-testing>
- **仓库:** <https://github.com/helm/chart-testing>
- **最后更新:** 2026-07-27T19:21:00+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ct (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Chart Testing is the Helm project CLI, `ct`, for linting and testing Helm charts, especially in pull-request and CI workflows where changed charts need to be detected and validated.

### 项目历史

The Helm organization created the chart-testing repository in November 2017. Its README notes that v2.0.0 refactored the tool from a bash library to Go while keeping v1 parity, and GitHub release metadata shows v2.0.0 published in November 2018 and the current v3.14.0 release in October 2025.

### 采用历史

Chart Testing spread with Helm chart repository CI. The README recommends the Quay Docker image because it bundles Helm, Git, yamllint, Yamale, and kubectl; it also documents binary releases and Homebrew installation, while the input facts list Homebrew, Nix, pacman, and zypper packaging.

### 使用方式

`ct` is used to list changed charts, lint charts, install charts, and run combined lint-and-install checks. Configuration is supplied by CLI flags, `CT_` environment variables, or config files, and default config lookup includes the current directory, `$HOME/.ct`, and `/etc/ct`.

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

Chart Testing is package infrastructure for packages-that-are-YAML: it gives Helm chart maintainers repeatable CI checks around chart metadata, dependency linting, schema validation, Kubernetes installation, and change detection. For chart repositories, it fills the role that language package ecosystems often get from their native test and lint commands.

### 时间线

- 2017-11: Helm chart-testing repository created.
- 2018-11: v2.0.0 released after the refactor from bash library to Go.
- 2025-10: Latest upstream GitHub release metadata lists v3.14.0.

### Related projects

- Helm is the chart ecosystem that `ct` validates.
- chart-releaser is a sibling Helm tool for publishing charts after testing.
- yamllint, Yamale, kubectl, Git, and Helm are documented prerequisites in the official README.

### 来源

- <https://github.com/helm/chart-testing>
- <https://github.com/helm/chart-testing/tree/main/doc>
- <https://api.github.com/repos/helm/chart-testing>
- <https://api.github.com/repos/helm/chart-testing/releases>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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: ./ct.yaml, ~/.ct/ct.yaml, /etc/ct/ct.yaml
## 其他软件包管理器记录

- Nix - chart-testing: normalized package name match | nixpkgs package indexes: pkgs/by-name/ch/chart-testing/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - chart-testing - 3.14.0-1.7: normalized package name match | openSUSE Tumbleweed package metadata: chart-testing from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CLI tool for linting and testing Helm charts | https://github.com/helm/chart-testing
- pacman - ct - 0.9.4-2: installed executable or alias match | Arch Linux sync databases: ct from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | config transpiler for Flatcar Container Linux | https://github.com/flatcar/container-linux-config-transpiler


## Combined YAML source

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