# 使用 Homebrew, apk, Nix, zypper, winget 安装 ttl

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

## 安装

```sh
sudo av install brew:ttl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ttl
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add ttl
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ttl
```

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

- zypper (92%):

```sh
sudo zypper install ttl
```

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

### Windows

- winget (92%):

```sh
winget install --id TwintailTeam.TTL -e
```

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

## 软件包事实

- **软件包键:** brew:ttl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ttl>
- **版本:** 0.21.0
- **来源摘要:** Modern traceroute/mtr-style TUI with hop stats and ASN/geo enrichment
- **主页:** <https://github.com/lance0/ttl>
- **仓库:** <https://github.com/lance0/ttl>
- **上游文档:** <https://github.com/lance0/ttl#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/lance0/ttl/archive/refs/tags/v0.21.0.tar.gz>
- **最后更新:** 2026-07-07T16:37:31Z
- **已生成:** 2026-07-26T07:20:29+00:00

## 可执行文件

- ttl (cli)
- ttl (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-26
- 管理器版本: 0.21.0
- 管理器更新时间: 2026-07-07
- 本地数据: OK
- 上游仓库: https://github.com/lance0/ttl
- 检测到的最新版本: v0.21.0 (当前)
## 项目历史与用法

ttl is a modern Rust traceroute and mtr-style terminal tool with a real-time TUI, per-hop statistics, ASN and GeoIP enrichment, ECMP detection, path MTU discovery, and machine-readable exports.

Its package-manager niche is the contemporary network-debugging CLI: a single command that blends classic traceroute behavior with TUI observability, structured output, and daemon-friendly monitoring.

### 项目历史

The official README describes ttl as a network diagnostic tool that goes beyond traceroute, with route flap alerts, IX identification, NAT detection, MTU discovery, and multi-target tracing. Its Cargo metadata identifies the package as a command-line network diagnostic utility and points to the GitHub repository.

The changelog shows active release work through 2026. Version 0.15.0 in January 2026 added animated replay and event recording; later releases added ECMP classification, NetBSD support, replay controls, daemon mode, Prometheus export, Docker publishing, trace diffing, and platform-specific raw-socket fixes.

### 采用历史

The README lists installation paths through crates.io, Homebrew core, Alpine edge/testing, Arch AUR, Gentoo, NetBSD pkgsrc, Nix, GitHub release binaries, and Docker images. That spread is unusually broad for a young network CLI and reflects its appeal to package users who want a current alternative to stock traceroute/mtr.

The GitHub page describes ttl as a better mtr and lists topics such as Rust, CLI, terminal, networking, latency, geolocation, ICMP, TUI, traceroute, network visualization, mtr, ASN lookup, and Ratatui.

### 使用方式

The README's quick start shows `ttl 8.8.8.8` on Linux after granting `cap_net_raw`, `sudo ttl 8.8.8.8` on macOS/BSD, UDP probing, multi-flow ECMP path discovery, path MTU discovery, multiple targets, and resolve-all tracing.

For automation, ttl supports JSON, CSV, text reports, line-delimited JSON streaming, saved-session replay, diffing, daemon mode, Prometheus metrics, Docker, and shell completions.

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

ttl is significant to package nerds because it packages a modern terminal-networking stack: Rust, Ratatui, cross-platform raw socket handling, package-manager install paths, and ops-friendly exports in one binary.

It also shows how newer CLIs compete with entrenched Unix tools by keeping the familiar traceroute mental model while adding structured output and observability hooks that fit scripted and containerized environments.

### 时间线

- 2026-01: Version 0.15.0 added animated replay and probe event recording.
- 2026-02: Version 0.18.1 added experimental NetBSD support.
- 2026-06: Version 0.20.0 added daemon mode, Prometheus export, Docker publishing, streaming JSON, and trace diffing.
- 2026-06: Version 0.20.1 fixed macOS/BSD probe TTL behavior and updated dependencies.

### Related projects

- traceroute and mtr are the classic tools ttl explicitly builds beyond.
- Ratatui and crossterm provide the terminal UI stack named in Cargo dependencies.
- PeeringDB, MaxMind GeoIP data, and ASN lookups are adjacent data sources used for ttl's enrichment features.

### 来源

- <https://github.com/lance0/ttl#readme>
- <https://github.com/lance0/ttl/blob/master/CHANGELOG.md>
- <https://github.com/lance0/ttl/blob/master/Cargo.toml>
- <https://github.com/lance0/ttl/blob/master/docs/FEATURES.md>
- source_facts.package-manager


## 安全说明

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


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ttl
- **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:** head, stable

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

- Nix - ttl: normalized package name match | nixpkgs package indexes: pkgs/by-name/tt/ttl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - ttl - 0.19.1-r0: normalized package name match | Alpine Linux edge package indexes: ttl from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast, modern traceroute with lot of options. A better mtr. | https://github.com/lance0/ttl
- zypper - ttl - 0.19.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: ttl from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Modern traceroute/mtr-style TUI | https://github.com/lance0/ttl
- winget - TwintailTeam.TTL: normalized package name match | Windows Package Manager source index: TwintailTeam.TTL from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [cloudflare-speed-cli](https://www.automicvault.com/zh-hans/pkg/brew/cloudflare-speed-cli/) - Shares av.db curated category or tags: cli, network-diagnostics, networking, tui.
- [fastrace](https://www.automicvault.com/zh-hans/pkg/brew/fastrace/) - Shares av.db curated category or tags: cli, network-diagnostics, networking, traceroute.
- [trippy](https://www.automicvault.com/zh-hans/pkg/brew/trippy/) - Shares av.db curated category or tags: cli, mtr, network-diagnostics, networking, traceroute.
- [speedtest-cli](https://www.automicvault.com/zh-hans/pkg/brew/speedtest-cli/) - Shares av.db curated category or tags: cli, network-diagnostics, networking.
- [asroute](https://www.automicvault.com/zh-hans/pkg/brew/asroute/) - Shares av.db curated category or tags: asn, cli, networking, traceroute.
- [geoip2fast](https://www.automicvault.com/zh-hans/pkg/brew/geoip2fast/) - Shares av.db curated category or tags: asn, cli, geoip, networking.
- [lft](https://www.automicvault.com/zh-hans/pkg/brew/lft/) - Shares av.db curated category or tags: cli, network-diagnostics, networking, traceroute.
- [mtr](https://www.automicvault.com/zh-hans/pkg/brew/mtr/) - Shares av.db curated category or tags: cli, network-diagnostics, networking, traceroute.

## Combined YAML source

View the package source record on GitHub. [combined/ttl.yml](https://github.com/automic-vault/db/blob/main/combined/ttl.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
