# 使用 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
- **版本:** 1.4
- **来源摘要:** Converts Microsoft Office docx documents to equivalent text documents
- **主页:** <https://docx2txt.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
