# 使用 Homebrew, Nix 安装 clock-rs

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

## 安装

```sh
sudo av install brew:clock-rs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clock-rs
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#clock-rs
```

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

## 软件包事实

- **软件包键:** brew:clock-rs
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clock-rs>
- **版本:** 0.2.1
- **来源摘要:** Modern, digital clock that effortlessly runs in your terminal
- **主页:** <https://github.com/Oughie/clock-rs>
- **仓库:** <https://github.com/Oughie/clock-rs>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/Oughie/clock-rs/archive/refs/tags/v0.2.1.tar.gz>
- **最后更新:** 2026-05-17T06:51:56Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- clock-rs (cli)
- clock-rs (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2.1
- 管理器更新时间: 2026-05-17
- 本地数据: OK
- 上游仓库: https://github.com/Oughie/clock-rs
- 检测到的最新版本: v0.2.1 (当前)
## 项目历史与用法

clock-rs is a Rust terminal clock with timer and stopwatch modes, TOML configuration, shell completions, and package-manager distribution.

### 项目历史

The official README describes clock-rs as a modern terminal-based Rust clock and a new alternative to tty-clock, adding a single configuration file and command-line overrides.

### 采用历史

The README documents installation through Cargo, Homebrew, Arch AUR, NetBSD pkgsrc, and Nixpkgs, showing adoption across several package-manager ecosystems.

### 使用方式

Users run `clock-rs` for the default clock, or subcommands such as `timer` and `stopwatch`. Settings can live in `conf.toml` and be overridden by command-line options.

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

clock-rs is a good example of a polished Rust CLI moving through multiple packaging channels while keeping configuration simple and cross-platform.

### 时间线

- 2024: README copyright year for the clock-rs project.
- 2026-05-16: GitHub releases page lists clock-rs v0.2.1 as latest in the opened repository metadata.

### Related projects

- The README explicitly calls clock-rs an alternative to tty-clock.

### 来源

- Official GitHub README: introduction, installation methods, usage, configuration paths, and relation to tty-clock.
- Official GitHub repository metadata: latest release information displayed on the repository page.


## 安全说明

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



## 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

- Linux: ~/.config/clock-rs/conf.toml
- macOS: ~/Library/Application Support/clock-rs/conf.toml
- Windows: C:\Users\%USERNAME%\AppData\Local\clock-rs\conf.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clock-rs
- **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 - clock-rs: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clock-rs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [ekphos](https://pkg.so/zh-hans/brew/ekphos/) - Shares pkgdb curated category or tags: cli, productivity, rust, terminal, tui.
- [arttime](https://pkg.so/zh-hans/brew/arttime/) - Shares pkgdb curated category or tags: cli, clock, productivity, terminal, timer.
- [gotz](https://pkg.so/zh-hans/brew/gotz/) - Shares pkgdb curated category or tags: cli, productivity, terminal, time.
- [sheets](https://pkg.so/zh-hans/brew/sheets/) - Shares pkgdb curated category or tags: cli, productivity, terminal, tui.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity, rust, terminal, tui.
- [byobu](https://pkg.so/zh-hans/brew/byobu/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [sc-im](https://pkg.so/zh-hans/brew/sc-im/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [elio](https://pkg.so/zh-hans/brew/elio/) - Shares pkgdb curated category or tags: cli, productivity, rust, terminal, tui.
- [ox](https://pkg.so/zh-hans/brew/ox/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, productivity, runs, rust, terminal.

## Combined YAML source

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