# 使用 Homebrew, apt, Nix 安装 tml

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

## 安装

```sh
sudo av install brew:tml
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tml
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install tml
```

  证据: Debian stable package indexes: tml from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#tml
```

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

## 软件包事实

- **软件包键:** brew:tml
- **软件包管理器:** Homebrew
- **版本:** 0.7.1
- **来源摘要:** Tiny markup language for terminal output
- **主页:** <https://github.com/liamg/tml>
- **仓库:** <https://github.com/liamg/tml>
- **最后更新:** 2026-07-26T00:50:42+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tml (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

tml, short for Terminal Markup Language, is a Go module and standalone binary for writing colored and formatted terminal output with tag-like markup.

### 项目历史

The project is intentionally small. Its official README presents tml as both a Go library and a CLI that reads tagged text and renders terminal color and attributes, making shell and Go output easier to read without manually writing escape sequences.

### 采用历史

The supplied source facts show tml packaged in Homebrew and Nix, and as a Debian/Ubuntu Go development package. That adoption pattern reflects a dual identity: a command-line helper for shell users and a library dependency for Go packages.

### 使用方式

tml is used by piping text containing tags to the binary or by calling the Go package from an application. The README documents foreground colors, background colors, and attributes such as bold, dim, italic, underline, blink, reverse, hidden, and strikethrough.

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

tml is package-nerd useful because it offers a tiny, installable alternative to bespoke ANSI escape handling. It is especially relevant to developers building small CLIs who want readable terminal output code.

### 时间线

- 2024: The GitHub project page lists v0.7.0 as the latest release, dated April 24, 2024.
- 2026: The batch source facts list Homebrew, Debian, Ubuntu, and Nix package entries.

### Related projects

- Go command-line applications are the primary library audience described by the README.
- Shell scripts are the primary standalone-binary audience described by the README.

### 来源

- <https://github.com/liamg/tml#readme>
- input.source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - golang-github-liamg-tml-dev - 0.7.0-1: normalized package name match | Debian stable package indexes: golang-github-liamg-tml-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | terminal markup language library for Go | https://github.com/liamg/tml
- Debian apt - tml - 0.7.0-1+b5: normalized package name match | Debian stable package indexes: tml from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | terminal markup language | https://github.com/liamg/tml
- Nix - tml: normalized package name match | nixpkgs package indexes: pkgs/by-name/tm/tml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - golang-github-liamg-tml-dev - 0.6.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: golang-github-liamg-tml-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | terminal markup language library for Go | https://github.com/liamg/tml
- Ubuntu apt - tml - 0.6.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: tml from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | terminal markup language | https://github.com/liamg/tml


## Combined YAML source

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