# 使用 Homebrew, apk, Nix 安装 tz

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

## 安装

```sh
sudo av install brew:tz
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tz
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add tz
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#tz
```

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

## 软件包事实

- **软件包键:** brew:tz
- **软件包管理器:** Homebrew
- **版本:** 0.8.0
- **来源摘要:** CLI time zone visualizer
- **主页:** <https://github.com/oz/tz>
- **仓库:** <https://github.com/oz/tz>
- **最后更新:** 2026-07-26T03:12:24+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tz (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

tz is an interactive terminal helper for comparing times across selected IANA time zones. It is part of the small but persistent Unix tradition of wrapping tzdb names in more human-friendly command-line interfaces.

### 项目历史

The oz/tz repository was created in January 2021. Its README presents the program as an interactive TUI for scheduling across time zones, displaying local time, UTC, and user-chosen zones.

The release history shows a fast early 2021 series through 0.6, then later releases in 2023, 2024, and 2025. The README documents a configuration file, an environment-variable workflow through `TZ_LIST`, command-line arguments, and Go source builds.

### 采用历史

The README lists Homebrew and Arch packaging and `go install`; the batch package facts add apk and Nix. This is typical adoption for a small Go terminal app that solves a daily coordination problem for distributed teams.

Its adoption depends on the IANA time zone database naming scheme: users pass zone names such as `Europe/Paris` or `US/Pacific`, and the tool renders those names into local-time comparisons.

### 使用方式

Typical use is to run `tz` with no arguments for local and UTC time, pass zone names on the command line, set `TZ_LIST` for shell-level defaults, or store preferred zones in `~/.config/tz/conf.toml`.

In package-manager workflows, tz is a lightweight install for people who do not want a calendar app just to answer cross-zone scheduling questions from the terminal.

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

tz matters as a small wrapper around tzdb rather than as new time-zone infrastructure. Package nerds care because it shows the value of keeping canonical zoneinfo data in the operating system while packaging focused CLI views on top.

### 时间线

- 2021-01-30: oz/tz GitHub repository created.
- 2021-03-16: v0.4 released during the early release series.
- 2023-01-16: v0.6.3 released.
- 2025-02-14: v0.8.0 released.

### Related projects

- The IANA Time Zone Database provides the zone names and rules used by tz.
- tzdiff is a related terminal tool for comparing local and remote time-zone columns.

### 来源

- <https://api.github.com/repos/oz/tz>
- <https://api.github.com/repos/oz/tz/releases>
- <https://github.com/oz/tz>
- source_facts.package-manager


## 安全说明

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: ~/.config/tz/conf.toml
## 其他软件包管理器记录

- Nix - tz: normalized package name match | nixpkgs package indexes: pkgs/by-name/tz/tz/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - tz - 0.8.0-r14: normalized package name match | Alpine Linux edge package indexes: tz from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | interactive TUI program that displays time across a few time zones of your choosing | https://github.com/oz/tz


## Combined YAML source

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