# 使用 Homebrew, apk, MacPorts, Nix, scoop, winget 安装 ytt

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

## 安装

```sh
sudo av install brew:ytt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ytt
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ytt
```

  证据: MacPorts ports tree: textproc/ytt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ytt
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ytt
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/ytt
```

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

- winget (92%):

```sh
winget install --id Carvel.ytt -e
```

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

## 软件包事实

- **软件包键:** brew:ytt
- **软件包管理器:** Homebrew
- **版本:** 0.55.1
- **来源摘要:** YAML templating tool that works on YAML structure instead of text
- **主页:** <https://carvel.dev/ytt/>
- **仓库:** <https://github.com/carvel-dev/ytt>
- **最后更新:** 2026-07-25T21:32:50+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ytt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ytt is Carvel’s structure-aware YAML templating tool, historically important because it treats YAML as data structure plus Starlark annotations instead of as raw text with indentation-sensitive string interpolation.

### 项目历史

ytt was introduced publicly in March 2019 as the YAML Templating Tool, with IBM Developer describing v0.1.0 as a new approach to complex configuration management. The GitHub repository was created the same month, and early releases followed rapidly through spring and summer 2019.

The tool emerged from the k14s/Carvel ecosystem around Kubernetes configuration. Its core design responded to a common pain in Helm, Jinja, ERB, and other text-templating approaches: YAML indentation, quoting, and patching errors caused by treating structured configuration as strings. ytt instead embeds Starlark through `#@` annotations and evaluates templates into YAML structures.

As k14s became Carvel, ytt settled into a suite of small composable Kubernetes tools alongside kapp, kbld, imgpkg, vendir, kapp-controller, and kctrl. The Carvel site frames the suite as single-purpose, composable tools for building, configuring, and deploying applications on Kubernetes.

### 采用历史

ytt adoption has been strongest in Kubernetes and Tanzu/Carvel workflows. Broadcom VMware Tanzu documentation bundles ytt with other Carvel tools in Tanzu Kubernetes Grid contexts, and Carvel maintains community channels, an adopter list, examples, an online playground, and reusable libraries such as ytt Library for Kubernetes.

Outside Tanzu, ytt is adopted by users who want more programmability than Kustomize overlays but less text-fragility than Helm-style templating. Blog posts and talks often present it as an alternative or complement to Helm, Kustomize, Jsonnet, and Dhall in Kubernetes configuration pipelines.

### 使用方式

Users run ytt to template, patch, validate, and compose YAML files. Common patterns include data values for environment-specific configuration, overlays for patching third-party YAML, Starlark functions for reusable logic, schema and validations for fast feedback, and integration into GitOps or packaging flows.

The package is especially useful when a team has piles of Kubernetes YAML and wants programmable reuse while preserving YAML structure. Its online playground and local `ytt website` mode also make examples easy to test without wiring a cluster.

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

ytt matters to package nerds because it shows a distinct packaging philosophy: do one YAML-shaping job well, compose with neighboring tools, and avoid making the templater also be the package manager, deployer, and image builder.

It is also one of the clearer examples of Starlark moving beyond Bazel into infrastructure configuration. In dependency graphs, seeing ytt often hints at Carvel-style Kubernetes delivery rather than Helm-only packaging.

### 时间线

- 2019-03-01: The carvel-dev/ytt GitHub repository is created.
- 2019-03-12: IBM Developer announces ytt v0.1.0 as a new YAML templating approach.
- 2019-03-20: ytt v0.4.0 appears in GitHub releases, followed by frequent early releases.
- 2020-2021: k14s tooling is increasingly described under the Carvel name and used in Tanzu Kubernetes workflows.
- 2020s: ytt remains one of the core Carvel tools alongside kapp, kbld, imgpkg, vendir, and kapp-controller.

### Related projects

- Related projects include Carvel, k14s, kapp, kbld, imgpkg, vendir, kapp-controller, kctrl, Helm, Kustomize, Jsonnet, Dhall, Starlark, Kubernetes, and Tanzu Kubernetes Grid.

### 来源

- <https://api.github.com/repos/carvel-dev/ytt>
- <https://carvel.dev/>
- <https://carvel.dev/blog/parameterizing-project-config-with-ytt/>
- <https://carvel.dev/ytt/>
- <https://developer.ibm.com/blogs/yaml-templating-tool-to-simplify-complex-configuration-management/>
- <https://github.com/carvel-dev/ytt>
- <https://github.com/carvel-dev/ytt-library-for-kubernetes>
- <https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-kubernetes-grid/2-4/using-tkg/workload-carvel-tools.html>


## 安全说明

没有找到 ytt 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Nix - ytt: normalized package name match | nixpkgs package indexes: pkgs/by-name/yt/ytt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - ytt - 0.52.1-r8: normalized package name match | Alpine Linux edge package indexes: ytt from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | YAML templating tool that works on YAML structure instead of text | https://carvel.dev/ytt/
- MacPorts - ytt: normalized package name match | MacPorts ports tree: textproc/ytt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/ytt: normalized package name match | Scoop official bucket manifest trees: bucket/ytt.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Carvel.ytt: normalized package name match | Windows Package Manager source index: Carvel.ytt from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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