# 使用 Homebrew, Nix 安装 empty

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

## 安装

```sh
sudo av install brew:empty
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install empty
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#empty
```

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

## 软件包事实

- **软件包键:** brew:empty
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/empty>
- **版本:** 0.6.23d
- **来源摘要:** Lightweight Expect-like PTY tool for shell scripts
- **主页:** <https://empty.sourceforge.net/>
- **上游文档:** <https://empty.sourceforge.net/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://downloads.sourceforge.net/project/empty/empty/empty-0.6.23d/empty-0.6.23d.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- empty (cli)
- empty (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.6.23d
- 本地数据: OK
- 上游仓库: https://empty.sourceforge.net/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

`empty` is a lightweight Unix PTY automation tool meant to let shell scripts drive interactive programs without pulling in Tcl/Expect, Perl, Python, or a larger scripting runtime.

### 项目历史

The official site says `empty` was written by Mikhail E. Zakharov, based on the idea of Daniel J. Bernstein's pty-4.0 but without porting pty-4.0 code. Its copyright notice spans 2005 to 2020.

### 采用历史

The project page lists successful compilation and testing on a broad set of Unix-like systems, including BSDs, macOS, Linux, Solaris, AIX, HP-UX, OSF1, and Cygwin. That portability is the main adoption story rather than a large ecosystem.

### 使用方式

`empty` runs a process under a pseudo-terminal and then sends or waits for text through named input and output files. The homepage compares a short telnet login sequence against Tcl/Expect, Perl Expect, and Python Pexpect examples.

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

The package is interesting because it keeps the old Unix promise small: PTY scripting from plain shell, entirely in C, with minimal dependencies. It is the sort of utility that survives in package managers because it solves one awkward automation job without dragging in a language stack.

### Related projects

- The homepage compares `empty` directly with Tcl/Expect, Perl Expect, and Python Pexpect, and notes the conceptual link to pty-4.0.

### 来源

- <https://empty.sourceforge.net/>
- <https://sourceforge.net/p/empty/code>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

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

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

- Nix - empty: normalized package name match | nixpkgs package indexes: pkgs/by-name/em/empty/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [sexpect](https://pkg.so/zh-hans/brew/sexpect/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, expect, pty.
- [expect](https://pkg.so/zh-hans/brew/expect/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [entr](https://pkg.so/zh-hans/brew/entr/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [retry](https://pkg.so/zh-hans/brew/retry/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [appium](https://pkg.so/zh-hans/brew/appium/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [apify-cli](https://pkg.so/zh-hans/brew/apify-cli/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [robot-framework](https://pkg.so/zh-hans/brew/robot-framework/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [docker-gen](https://pkg.so/zh-hans/brew/docker-gen/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [dialog](https://pkg.so/zh-hans/brew/dialog/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, scripting, scripts.

## Combined YAML source

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


## 来源

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