# 使用 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
- **版本:** 1
- **来源摘要:** Command-line tool to put Macs to sleep
- **主页:** <https://github.com/Orc/Zzz>
- **仓库:** <https://github.com/Orc/Zzz>
- **最后更新:** 2026-07-10T09:37:19-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- Zzz (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Zzz is a small macOS command-line program that asks the operating system's power-management service to put the machine to sleep immediately.

### 项目历史

The project's manual page is dated 11 August 2011 and describes a single-purpose system utility authored by David Parsons. The upstream C source remains intentionally small: it locates the IOKit power-management service, calls `IOPMSleepSystem`, reports errors, and exits.

### 采用历史

The official README documents both traditional make-based installation into `/usr/local/bin` and Homebrew installation. This positions Zzz as a compact packaged convenience for shell users rather than a larger application or daemon.

### 使用方式

Run `Zzz` with no arguments to request immediate sleep. The manual documents a zero exit status on success and a nonzero status on failure; no root access is required.

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

Zzz is a characteristic micro-utility: a stable, memorable command packages a platform API call that would otherwise require custom C code or a less discoverable system workflow. Its makefile, manual page, C source, and Homebrew path exemplify the durable Unix packaging of tiny native tools.

### 时间线

- 2011-08-11: The Zzz manual page documents the macOS sleep command.
- Later upstream README: Traditional make installation and Homebrew installation are documented side by side.

### Related projects

- The README compares Zzz with SleepNow, while its implementation directly uses Apple's IOKit power-management interfaces.

### 来源

- <https://github.com/Orc/Zzz#readme>
- <https://github.com/Orc/Zzz/blob/main/Zzz.8>
- <https://github.com/Orc/Zzz/blob/main/Zzz.c>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- 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


## Combined YAML source

View the package source record on GitHub. [combined/zzz.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zzz.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
