# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tz>
- **版本:** 0.8.0
- **来源摘要:** CLI time zone visualizer
- **主页:** <https://github.com/oz/tz>
- **仓库:** <https://github.com/oz/tz>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/oz/tz/archive/refs/tags/v0.8.0.tar.gz>
- **最后更新:** 2026-07-26T03:12:24+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- tz (cli)
- tz (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.8.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/oz/tz
- 检测到的最新版本: v0.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
## 源数据库详情

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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [gotz](https://pkg.so/zh-hans/brew/gotz/) - Shares pkgdb curated category or tags: cli, productivity, terminal, time.
- [tmux](https://pkg.so/zh-hans/brew/tmux/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [vim](https://pkg.so/zh-hans/brew/vim/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [midnight-commander](https://pkg.so/zh-hans/brew/midnight-commander/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [mutt](https://pkg.so/zh-hans/brew/mutt/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [superfile](https://pkg.so/zh-hans/brew/superfile/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [lf](https://pkg.so/zh-hans/brew/lf/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [arttime](https://pkg.so/zh-hans/brew/arttime/) - Local package facts share a topical domain. Shared terms: cli, productivity, terminal, time.
- [bartib](https://pkg.so/zh-hans/brew/bartib/) - Local package facts share a topical domain. Shared terms: cli, productivity, terminal, time.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
