# 使用 Homebrew, apt, pacman 安装 docx2txt

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

## 安装

```sh
sudo av install brew:docx2txt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install docx2txt
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install docx2txt
```

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

- pacman (92%):

```sh
sudo pacman -S docx2txt
```

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

## 软件包事实

- **软件包键:** brew:docx2txt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/docx2txt>
- **版本:** 1.4
- **来源摘要:** Converts Microsoft Office docx documents to equivalent text documents
- **主页:** <https://docx2txt.sourceforge.net/>
- **上游文档:** <https://docx2txt.sourceforge.net/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/docx2txt/docx2txt/v1.4/docx2txt-1.4.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- docx2txt.pl (cli)
- docx2txt.sh (cli)
- docx2txt.pl (别名)
- docx2txt.sh (别名)

## 安装行为

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

## 版本和新鲜度

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

docx2txt is a Perl-based command-line utility for extracting formatted plain text from Microsoft Office `.docx` files. It reflects a classic Unix-filter approach to Office Open XML documents: unzip the archive, read the XML, and write text suitable for terminals, scripts, and editors.

### 项目历史

The official SourceForge page lists releases from v0.1 in August 2008 through v1.4 in May 2014. Its homepage describes support for character conversion, text alignment, hyperlinks, lists, wrapper scripts, standard input and output, and multiple command-line unzip backends.

### 采用历史

docx2txt spread through package managers and text-processing workflows rather than through a large upstream community. The official site lists examples of direct or indirect usage, including search/indexing systems and an Oxford University Press hot-folder workflow, while Homebrew continues to package v1.4 with low but steady install activity.

### 使用方式

The tool is commonly used as `docx2txt.pl input.docx output.txt` or as a filter through wrapper scripts. The official page documents integrations for Midnight Commander, Vim, and Emacs so `.docx` files can be viewed as text from existing editor/file-manager workflows.

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

docx2txt is package-nerd significant as a small, dependency-light bridge between binary-ish office documents and plain-text automation. It is the kind of utility that stays useful in scripts, search indexes, mail pipelines, and recovery workflows long after its upstream release cadence slows.

### 时间线

- 2008-08: v0.1 released.
- 2009-10: v1.0 released.
- 2012-01: v1.2 released.
- 2014-05: v1.4 released and homepage last updated.
- 2026: Homebrew continues to package v1.4.

### Related projects

- The official page relates docx2txt to command-line unzip tools such as Unzip, 7-Zip, PKZip, WinZip, and CakeCmd, and to editor/file-manager workflows in Midnight Commander, Vim, and Emacs.

### 来源

- <https://docx2txt.sourceforge.net/>
- <https://sourceforge.net/projects/docx2txt/>
- <https://sourceforge.net/p/docx2txt/code/>
- <https://formulae.brew.sh/api/formula/docx2txt.json>


## 安全说明

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:** docx2txt
- **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

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

- Debian apt - docx2txt - 1.4-5: normalized package name match | Debian stable package indexes: docx2txt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Convert Microsoft OOXML files to plain text | http://docx2txt.sourceforge.net
- Ubuntu apt - docx2txt - 1.4-5: normalized package name match | Ubuntu 24.04 LTS package indexes: docx2txt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Convert Microsoft OOXML files to plain text | http://docx2txt.sourceforge.net
- pacman - docx2txt - 1.4-6: normalized package name match | Arch Linux sync databases: docx2txt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Recovers text from DOCX files, with good formatting. | http://docx2txt.sourceforge.net


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing 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.
- [a2ps](https://pkg.so/zh-hans/brew/a2ps/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [latex2html](https://pkg.so/zh-hans/brew/latex2html/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [latex2rtf](https://pkg.so/zh-hans/brew/latex2rtf/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [libmspub](https://pkg.so/zh-hans/brew/libmspub/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [odt2txt](https://pkg.so/zh-hans/brew/odt2txt/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [rtf2latex2e](https://pkg.so/zh-hans/brew/rtf2latex2e/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [libcdr](https://pkg.so/zh-hans/brew/libcdr/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [feishu2md](https://pkg.so/zh-hans/brew/feishu2md/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.

## Combined YAML source

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