# 使用 Homebrew, MacPorts, Nix 安装 wtf

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

## 安装

```sh
sudo av install brew:wtf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wtf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wtf
```

  证据: MacPorts ports tree: games/wtf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#wtf
```

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

## 软件包事实

- **软件包键:** brew:wtf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/wtf>
- **版本:** 20230906
- **来源摘要:** Translate common Internet acronyms
- **主页:** <https://sourceforge.net/projects/bsdwtf/>
- **上游文档:** <https://sourceforge.net/projects/bsdwtf/>
- **许可证:** LicenseRef-Homebrew-public-domain
- **源码归档:** <https://downloads.sourceforge.net/project/bsdwtf/wtf-20230906.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- wtf (cli)
- wtf (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

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

wtf is the small BSD command-line acronym lookup utility: users type forms such as `wtf TCP` or the natural-language `wtf is TCP`, and the command expands matching terms from acronym databases or falls back to system help sources.

### 项目历史

The current NetBSD manual identifies `wtf` as a section 6 utility that looks up one or more terms, first in acronym databases and then through tools such as whatis, pkg_info, and pkgsrc help when appropriate. Its files include the default acronym database, an offensive acronym database enabled by option, and a computer-related acronym database.

The FreeBSD 7.2 manual page records the historical origin succinctly: `wtf` first appeared in NetBSD 1.5. The current NetBSD manual adds that it initially only translated acronyms, while later versions gained the ability to look up terms in other system sources.

### 采用历史

The command spread beyond NetBSD through BSD ports and redistributions of the NetBSD script and acronym databases. The SourceForge bsd-wtf project describes itself as a convenient place to get the `wtf` program and acronyms database outside the NetBSD source tree, while FreeBSD and other packaging ecosystems carried variants for users who wanted the BSD utility on non-NetBSD systems.

### 使用方式

The canonical usage is intentionally casual: `wtf` accepts an optional ignored `is` operand so `wtf is WTF` works naturally. Users can override the acronym database with `-f` or the ACRONYMDB environment variable, which makes the tool easy to adapt to local jargon lists.

In pkgsrc-aware environments, the command is more than a slang lookup: if an acronym is not found, it can ask package and manual-page sources. That makes it a tiny bridge between Unix wordplay, system documentation, and package-tree help.

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

wtf is package-nerd lore because it is a deliberately unserious command that still follows Unix conventions: plain text databases, environment overrides, manpage documentation, and integration with package metadata. It is also a reminder that BSD games and misc utilities often became portable command-line packages in their own right.

### 时间线

- 2000: NetBSD 1.5 era in which `wtf` first appeared.
- 2007-07-27: The FreeBSD 7.2 manual page documents the NetBSD origin.
- 2015-04-22: The current NetBSD manual page documents later term-lookup behavior beyond acronym translation.
- 2010s: SourceForge bsd-wtf provides the NetBSD utility and acronym database outside the NetBSD source tree.

### Related projects

- NetBSD supplies the canonical manual page and acronym database behavior.
- SourceForge bsd-wtf mirrors the NetBSD utility and data for use outside the NetBSD tree.
- FreeBSD carried a ported manual page documenting the NetBSD origin.

### 来源

- <https://man.freebsd.org/cgi/man.cgi?query=wtf&manpath=FreeBSD+7.2-RELEASE+and+Ports>
- <https://man.netbsd.org/wtf.6>
- <https://sourceforge.net/projects/bsdwtf/>
- <https://www.freshports.org/games/wtf>


## 安全说明

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:** wtf
- **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 - wtf: normalized package name match | nixpkgs package indexes: pkgs/by-name/wt/wtf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - wtf: normalized package name match | MacPorts ports tree: games/wtf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://pkg.so/zh-hans/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [gucharmap](https://pkg.so/zh-hans/brew/gucharmap/) - Shares pkgdb curated category or tags: cli, productivity, reference.
- [tmux](https://pkg.so/zh-hans/brew/tmux/) - Shares pkgdb curated category or tags: cli, productivity.
- [vim](https://pkg.so/zh-hans/brew/vim/) - Shares pkgdb curated category or tags: cli, productivity.
- [himalaya](https://pkg.so/zh-hans/brew/himalaya/) - Shares pkgdb curated category or tags: cli, productivity.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity.
- [emacs](https://pkg.so/zh-hans/brew/emacs/) - Shares pkgdb curated category or tags: cli, productivity.
- [zellij](https://pkg.so/zh-hans/brew/zellij/) - Shares pkgdb curated category or tags: cli, productivity.
- [aspell](https://pkg.so/zh-hans/brew/aspell/) - Shares pkgdb curated category or tags: cli, productivity.
- [biber](https://pkg.so/zh-hans/brew/biber/) - Local package facts share a topical domain. Shared terms: cli, productivity.
- [bibutils](https://pkg.so/zh-hans/brew/bibutils/) - Local package facts share a topical domain. Shared terms: cli, productivity.
- [esniper](https://pkg.so/zh-hans/brew/esniper/) - Local package facts share a topical domain. Shared terms: cli, productivity.

## Combined YAML source

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