# 使用 Homebrew 安装 cweb

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

## 安装

```sh
sudo av install brew:cweb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cweb
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cweb
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cweb>
- **版本:** 4.12.2
- **来源摘要:** Literate documentation system for C, C++, and Java
- **主页:** <https://cs.stanford.edu/~knuth/cweb.html>
- **仓库:** <https://github.com/ascherer/cweb>
- **上游文档:** <https://cs.stanford.edu/~knuth/cweb.html>
- **许可证:** Knuth-CTAN
- **源码归档:** <https://github.com/ascherer/cweb/archive/refs/tags/cweb-4.12.2.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- ctangle (cli)
- cweave (cli)
- ctangle (别名)
- cweave (别名)

## 安装行为

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

## 版本和新鲜度

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

CWEB is Donald Knuth and Silvio Levy's literate-programming system for C, C++, and Java, pairing TeX documentation with source extraction through cweave and ctangle.

### 项目历史

Knuth's official page explains that WEB originated while he wrote TeX, and that Silvio Levy adapted WEB to C in 1987. Knuth and Levy then revised and enhanced CWEB, including support for C++, ANSI C, and later Java-oriented use.

### 采用历史

CWEB has stayed relevant less as a mass-market build tool than as a durable literate-programming reference implementation. The current GitHub project describes several decades of accumulated experience and treats the repository partly as software archaeology for original Levy/Knuth releases.

### 使用方式

CWEB authors write .w files that mix explanation, TeX markup, and program fragments. ctangle extracts compilable source, while cweave produces typeset documentation for humans.

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

For package nerds, CWEB is a bridge between TeX culture and systems programming: it packages a historically important programming methodology, a stable pair of classic command-line tools, and a living archive of CWEB releases.

### 时间线

- 1987: Silvio Levy adapts WEB to C.
- 1993: Knuth and Levy publish The CWEB System of Structured Documentation.
- 2001: Third printing documents version 3.6 with hypertext extensions.
- The ascherer/cweb repository carries release records and archival material.

### Related projects

- CWEB is related to WEB, TeX, CTANGLE, CWEAVE, CTWILL, TeX Live, and other literate-programming environments.

### 来源

- <https://cs.stanford.edu/~knuth/cweb.html>
- <https://github.com/ascherer/cweb>
- <https://raw.githubusercontent.com/ascherer/cweb/master/README.md>
- <https://github.com/ascherer/cweb/releases>


## 安全说明

没有找到 cweb 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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


## 相关链接

- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://www.automicvault.com/zh-hans/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [Web development packages](https://www.automicvault.com/zh-hans/pkg/web-dev-tools/) - Matched web development metadata.

## Combined YAML source

View the package source record on GitHub. [combined/cweb.yml](https://github.com/automic-vault/db/blob/main/combined/cweb.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
