# 使用 Homebrew, Nix 安装 faketty

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

## 安装

```sh
sudo av install brew:faketty
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install faketty
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#faketty
```

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

## 软件包事实

- **软件包键:** brew:faketty
- **软件包管理器:** Homebrew
- **版本:** 1.0.20
- **来源摘要:** Wrapper to exec a command in a pty, even if redirecting the output
- **主页:** <https://github.com/dtolnay/faketty>
- **仓库:** <https://github.com/dtolnay/faketty>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- faketty (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

faketty is a Rust command wrapper that runs another command inside a pseudoterminal even when stdout or stderr are redirected.

### 项目历史

The GitHub repository was created in September 2020. Its README frames the tool as similar to script(1), but with a key difference: faketty preserves distinct stdout and stderr streams instead of merging output through a single pty.

### 采用历史

faketty is distributed through Cargo and packaged by Homebrew and Nix according to the input metadata. That makes it a small developer-tool package for build logs, CI scripts, and command wrappers that need terminal-style output without losing stream separation.

### 使用方式

The documented example wraps a build command such as bazel build while redirecting stdout and stderr to separate log files. This keeps programs that detect terminals from disabling colors, progress bars, or other tty-dependent behavior.

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

faketty is a concise packaging target because it solves one Unix tooling edge case cleanly: preserve terminal behavior for the child process while keeping stdout and stderr demultiplexed for logs.

### 时间线

- 2020-09: The GitHub repository is created.
- 2026-01: Version 1.0.20 is published on GitHub releases.

### Related projects

- faketty is explicitly related to script(1) and Unix pseudoterminal tooling, but exists for the separate-stream logging case that script(1) does not cover.

### 来源

- <https://github.com/dtolnay/faketty>
- <https://github.com/dtolnay/faketty#readme>
- <https://api.github.com/repos/dtolnay/faketty>
- <https://api.github.com/repos/dtolnay/faketty/releases?per_page=5>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - faketty: normalized package name match | nixpkgs package indexes: pkgs/by-name/fa/faketty/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/faketty.yml](https://github.com/mxcl/pkgdb/blob/main/combined/faketty.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
