# 使用 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
- **版本:** 0.6.23d
- **来源摘要:** Lightweight Expect-like PTY tool for shell scripts
- **主页:** <https://empty.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- empty (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

`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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
