# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 txt2man

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

## 安装

```sh
sudo av install brew:txt2man
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install txt2man
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install txt2man
```

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

### Linux

- apk (92%):

```sh
sudo apk add txt2man
```

  证据: Alpine Linux edge package indexes: txt2man from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install txt2man
```

  证据: Debian stable package indexes: txt2man from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install txt2man
```

  证据: Fedora Rawhide package metadata: txt2man from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#txt2man
```

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

- pacman (92%):

```sh
sudo pacman -S txt2man
```

  证据: Arch Linux sync databases: txt2man from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install txt2man
```

  证据: openSUSE Tumbleweed package metadata: txt2man from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:txt2man
- **软件包管理器:** Homebrew
- **版本:** 1.7.1
- **来源摘要:** Converts flat ASCII text to man page format
- **主页:** <https://github.com/mvertes/txt2man/>
- **仓库:** <https://github.com/mvertes/txt2man>
- **最后更新:** 2026-06-14T15:13:53+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bookman (别名)
- src2man (别名)
- txt2man (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

txt2man is a shell and GNU awk tool that converts readable flat ASCII text into standard Unix man-page macros.

### 项目历史

The script copyright dates txt2man to 2001-2003, and its changelog starts with the 1.4.6 release in December 2002. It was designed to let authors keep documentation readable as plain text while still generating standard nroff/troff man pages.

The project expanded from the core `txt2man` converter into companion tools. The 2006 changelog records `bookman` for generating books from man pages and `src2man` for extracting man pages from source files, turning the project into a small Unix documentation toolkit.

### 采用历史

txt2man has unusually broad package-manager coverage for a small script: the supplied package facts list Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE packaging. That reflects the utility of a dependency-light documentation generator in distro build scripts and upstream release processes.

The later changelog entries are mostly portability and reproducibility work: BSD/GNU date compatibility, gawk warning fixes, SOURCE_DATE_EPOCH support, and reproducible-build changes. Those are package-maintainer concerns, which helps explain why txt2man stayed relevant after its initial early-2000s release era.

### 使用方式

Users write a text file with recognizable sections, paragraphs, lists, cross references, and literal blocks, then pipe or pass it to `txt2man` to produce man(7) macro output. It can also preview formatted output through groff and a pager.

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

txt2man matters because it keeps the source of a manual page readable without hand-writing roff. For packagers, it is small, inspectable, friendly to reproducible builds, and suitable for projects that want man pages without adopting a larger documentation stack.

### 时间线

- 2001: txt2man script copyright begins.
- 2002: Changelog starts at txt2man 1.4.6.
- 2006: Changelog records `bookman` and `src2man` additions.
- 2016: GitHub release metadata records txt2man 1.6.0.
- 2020: GitHub release metadata records txt2man 1.7.1.

### Related projects

- bookman: companion command for compiling man pages into a book.
- src2man: companion command for extracting man pages from source files.
- groff and mandoc: output/formatting ecosystem referenced by the script help.

### 来源

- <https://api.github.com/repos/mvertes/txt2man/releases?per_page=20>
- <https://github.com/mvertes/txt2man>
- <https://raw.githubusercontent.com/mvertes/txt2man/master/Changelog>
- <https://raw.githubusercontent.com/mvertes/txt2man/master/README>
- <https://raw.githubusercontent.com/mvertes/txt2man/master/txt2man>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - txt2man - 1.7.1-5: normalized package name match | Debian stable package indexes: txt2man from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | convert flat ASCII text to manpage format | https://github.com/mvertes/txt2man
- Nix - txt2man: normalized package name match | nixpkgs package indexes: pkgs/by-name/tx/txt2man/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - txt2man - 1.7.1-4: normalized package name match | Ubuntu 24.04 LTS package indexes: txt2man from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | convert flat ASCII text to manpage format | https://github.com/mvertes/txt2man
- apk - txt2man - 1.7.1-r1: normalized package name match | Alpine Linux edge package indexes: txt2man from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Convert flat ASCII text to man page format | https://github.com/mvertes/txt2man
- apk - txt2man-doc - 1.7.1-r1: normalized package name match | Alpine Linux edge package indexes: txt2man-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Convert flat ASCII text to man page format (documentation) | https://github.com/mvertes/txt2man
- dnf - txt2man - 1.7.1-12.fc45: normalized package name match | Fedora Rawhide package metadata: txt2man from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Convert flat ASCII text to man page format | https://github.com/mvertes/txt2man
- pacman - txt2man - 1.7.1-4: normalized package name match | Arch Linux sync databases: txt2man from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Converts flat ASCII text to man page format | https://github.com/mvertes/txt2man
- zypper - txt2man - 1.7.1-1.15: normalized package name match | openSUSE Tumbleweed package metadata: txt2man from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Convert Flat ASCII Text to man Page Format | https://github.com/mvertes/txt2man
- MacPorts - txt2man: normalized package name match | MacPorts ports tree: textproc/txt2man/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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