# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/faketty>
- **版本:** 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>
- **上游文档:** <https://github.com/dtolnay/faketty#readme>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://github.com/dtolnay/faketty/archive/refs/tags/1.0.20.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- faketty (cli)
- faketty (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.0.20
- 本地数据: OK
- 上游仓库: https://github.com/dtolnay/faketty
- 检测到的最新版本: 1.0.20 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

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

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

- 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


## 相关链接

- [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.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [aha](https://www.automicvault.com/zh-hans/pkg/brew/aha/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [amtterm](https://www.automicvault.com/zh-hans/pkg/brew/amtterm/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ansifilter](https://www.automicvault.com/zh-hans/pkg/brew/ansifilter/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ccat](https://www.automicvault.com/zh-hans/pkg/brew/ccat/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [clive](https://www.automicvault.com/zh-hans/pkg/brew/clive/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [colordiff](https://www.automicvault.com/zh-hans/pkg/brew/colordiff/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [colormake](https://www.automicvault.com/zh-hans/pkg/brew/colormake/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [et](https://www.automicvault.com/zh-hans/pkg/brew/et/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [rlwrap](https://www.automicvault.com/zh-hans/pkg/brew/rlwrap/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, terminal, wrapper.
- [termshot](https://www.automicvault.com/zh-hans/pkg/brew/termshot/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, output, terminal.

## Combined YAML source

View the package source record on GitHub. [combined/faketty.yml](https://github.com/automic-vault/db/blob/main/combined/faketty.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
