# 使用 Homebrew, apk, Nix 安装 zzz

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

## 安装

```sh
sudo av install brew:zzz
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zzz
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add zzz
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#zzz
```

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

## 软件包事实

- **软件包键:** brew:zzz
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/zzz>
- **版本:** 1
- **来源摘要:** Command-line tool to put Macs to sleep
- **主页:** <https://github.com/Orc/Zzz>
- **仓库:** <https://github.com/Orc/Zzz>
- **上游文档:** <https://github.com/Orc/Zzz#readme>
- **许可证:** LicenseRef-Homebrew-public-domain
- **源码归档:** <https://github.com/Orc/Zzz/archive/refs/tags/v1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- Zzz (cli)
- Zzz (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1
- 本地数据: OK
- 上游仓库: https://github.com/Orc/Zzz
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Zzz is a tiny macOS command-line utility that immediately requests system sleep. It is essentially a packaged one-command wrapper around Apple's IOKit power-management APIs.

### 项目历史

The upstream README presents Zzz as a command-line macOS sleep program similar to SleepNow, with traditional make-based installation and a Homebrew installation path. The source is intentionally small C code using IOMasterPort, IOPMFindPowerManagement, and IOPMSleepSystem to ask macOS to sleep.

There is little public narrative around the project beyond the README and source, so its history is best understood as preservation of a tiny utility rather than an evolving application ecosystem.

### 采用历史

Adoption appears narrow: users install it when they want a memorable terminal command that sleeps a Mac immediately, especially in scripts or shell workflows where a GUI sleep command is awkward. The README's explicit Homebrew instructions show that package-manager installation is part of the intended usage story.

### 使用方式

Usage is intentionally minimal: run Zzz, and the Mac sleeps immediately. The program has no configuration file, credentials, long-running daemon, or visible help flow; its behavior is the side effect of calling the macOS power-management sleep API.

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

Zzz is package-nerd significant as an extreme small-package case. It demonstrates why package indexes contain tiny platform appliances: a few lines of C plus a stable command name can be more convenient than remembering or retyping lower-level system calls or scripts.

It also shows the maintenance quirks of old macOS C utilities: even a sleep wrapper depends on SDK headers, IOKit linkage, and small compatibility fixes over time.

### 时间线

- Public README era: Zzz is documented as a command-line macOS sleep program with make-based installation and Homebrew installation instructions.
- Current source: Zzz implements sleep by opening the macOS power-management connection and calling IOPMSleepSystem.

### Related projects

- Related tools and APIs include Apple's IOKit power-management APIs, pmset sleepnow, SleepNow-style utilities, SleepWatcher, caffeinate as the opposite keep-awake workflow, and other macOS command-line power-management helpers.

### 来源

- <https://github.com/Orc/Zzz>
- <https://raw.githubusercontent.com/Orc/Zzz/master/README.md>
- <https://raw.githubusercontent.com/Orc/Zzz/master/Zzz.c>
- <https://support.apple.com/guide/mac-help/schedule-your-mac-to-turn-on-or-off-mchl40376151/mac>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** zzz
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - zzz: normalized package name match | nixpkgs package indexes: pkgs/by-name/zz/zzz/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - zzz - 0.2.0-r0: normalized package name match | Alpine Linux edge package indexes: zzz from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Suspend or hibernate your computer | https://github.com/jirutka/zzz
- apk - zzz-doc - 0.2.0-r0: normalized package name match | Alpine Linux edge package indexes: zzz-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Suspend or hibernate your computer (documentation) | https://github.com/jirutka/zzz


## 相关链接

- [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.
- [powerman](https://www.automicvault.com/zh-hans/pkg/brew/powerman/) - Shares av.db curated category or tags: cli, power-management, system.
- [nut](https://www.automicvault.com/zh-hans/pkg/brew/nut/) - Shares av.db curated category or tags: cli, power-management, system.
- [sleepwatcher](https://www.automicvault.com/zh-hans/pkg/brew/sleepwatcher/) - Shares av.db curated category or tags: cli, macos, sleep, system.
- [apcupsd](https://www.automicvault.com/zh-hans/pkg/brew/apcupsd/) - Shares av.db curated category or tags: cli, power-management, system.
- [asitop](https://www.automicvault.com/zh-hans/pkg/brew/asitop/) - Shares av.db curated category or tags: cli, macos, system.
- [bluetoothconnector](https://www.automicvault.com/zh-hans/pkg/brew/bluetoothconnector/) - Shares av.db curated category or tags: cli, macos, system.
- [blueutil](https://www.automicvault.com/zh-hans/pkg/brew/blueutil/) - Shares av.db curated category or tags: cli, macos, system.
- [brightness](https://www.automicvault.com/zh-hans/pkg/brew/brightness/) - Shares av.db curated category or tags: cli, macos, system.
- [mas](https://www.automicvault.com/zh-hans/pkg/brew/mas/) - Local package facts share a topical domain. Shared terms: cli, command-line, line, macos, management.
- [mist-cli](https://www.automicvault.com/zh-hans/pkg/brew/mist-cli/) - Local package facts share a topical domain. Shared terms: cli, command-line, line, macos, management.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- 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
