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

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

## 安装

```sh
sudo av install brew:unrtf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install unrtf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install unrtf
```

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

### Linux

- apk (92%):

```sh
sudo apk add unrtf
```

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

- Debian apt (92%):

```sh
sudo apt install unrtf
```

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

- dnf (92%):

```sh
sudo dnf install unrtf
```

  证据: Fedora Rawhide package metadata: unrtf 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#unrtf
```

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

- pacman (92%):

```sh
sudo pacman -S unrtf
```

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

## 软件包事实

- **软件包键:** brew:unrtf
- **软件包管理器:** Homebrew
- **版本:** 0.21.10
- **来源摘要:** RTF to other formats converter
- **主页:** <https://www.gnu.org/software/unrtf/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- unrtf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

UnRTF is a GNU command-line program written in C for converting Rich Text Format documents to HTML, LaTeX, troff macros, plain text-style outputs, and RTF. The GNU project page notes that recent development has concentrated on HTML conversion because HTML can be converted onward to other formats.

### 项目历史

The official release README identifies Zachary Smith as the author in 2004, while AUTHORS names him as original author and lists Arkadiusz Firus as a major contributor, with Dave Davey and Jean-Francois Dockes as maintainers in the 0.21.10 release tarball.

GNU FTP release listings show public UnRTF releases by 2001, with 0.18.1 on the FTP site and later 0.19.x, 0.20.x, and 0.21.x releases. The GNU page documents an important 0.21.0 change: codepage conversion moved to iconv and output control moved to runtime configuration files, making output tuning and new output formats easier.

The NEWS file shows the later 0.21 branch mostly as maintenance and correctness work: table processing, EndNote citation support, image extraction improvements, EMF picture handling, Windows portability fixes, malformed-file hardening, AddressSanitizer-found overflow fixes, and build-system patches.

### 采用历史

The supplied package metadata shows UnRTF packaged across Homebrew, Alpine/apk, Debian, Fedora/dnf, MacPorts, Nix, Arch/pacman, Ubuntu, and openSUSE/zypper. That breadth fits a GNU utility whose job is to give scripts and distributions a non-interactive way to extract content from legacy `.rtf` documents.

UnRTF's adoption niche is older office-document conversion rather than modern office-suite automation. It matters where a small C binary is preferable to launching a full office suite and where imperfect but scriptable RTF-to-HTML conversion is good enough for indexing, migration, or text extraction.

### 使用方式

The GNU page describes UnRTF as a command-line converter, with the strongest documented feature set for HTML output: font, size, weight, slant, underline, strikethrough, special text effects, superscripts, subscripts, foreground and background colors, and conversion of special characters to HTML entities.

The release README is candid about limitations, saying the converter works reasonably well but has bugs and somewhat ugly output, with known issues around paragraph alignment and picture storing. That caveat is part of its real-world use: it is a pragmatic batch converter for RTF, not a perfect document renderer.

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

For package nerds, UnRTF is valuable because it is a small GNU tool that covers a legacy format without pulling in a graphical office suite. It is the kind of converter that appears in build scripts, document indexing jobs, archival workflows, and text-mining pipelines where reproducible command-line behavior matters more than visual fidelity.

It also carries classic distribution concerns: GNU FTP tarballs and signatures, a Savannah Mercurial repository, GPL licensing, iconv/codepage behavior, installed output configuration files, and a long tail of security hardening for malformed input files.

### 时间线

- 2001: GNU FTP lists UnRTF 0.18.1.
- 2004: Release README identifies Zachary Smith and describes Linux, BSD, and DOS/DJGPP builds.
- 2009: 0.21.0 moves codepage conversion to iconv and output control to runtime configuration files.
- 2014: 0.21.8 improves picture handling, EMF support, Windows portability, and malformed-file safety.
- 2015: 0.21.9 fixes text conversion, improves table handling, and adds EndNote citation support.
- 2018: 0.21.10 applies Gentoo automake and iconv detection patches.

### Related projects

- UnRTF is related to the GNU toolchain, iconv, RTF document producers, HTML converters, LaTeX and troff workflows, and heavier office-suite converters such as LibreOffice-based tools.

### 来源

- <https://ftp.gnu.org/gnu/unrtf/>
- <https://ftp.gnu.org/gnu/unrtf/unrtf-0.21.10.tar.gz>
- <https://www.gnu.org/software/unrtf>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - unrtf - 0.21.10-clean-1: normalized package name match | Debian stable package indexes: unrtf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | RTF to other formats converter | http://www.gnu.org/software/unrtf/
- Nix - unrtf: normalized package name match | nixpkgs package indexes: pkgs/by-name/un/unrtf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - unrtf - 0.21.10-clean-1: normalized package name match | Ubuntu 24.04 LTS package indexes: unrtf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | RTF to other formats converter | http://www.gnu.org/software/unrtf/
- apk - unrtf - 0.21.10-r4: normalized package name match | Alpine Linux edge package indexes: unrtf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command-line program which converts RTF documents to other formats | https://www.gnu.org/software/unrtf
- apk - unrtf-doc - 0.21.10-r4: normalized package name match | Alpine Linux edge package indexes: unrtf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command-line program which converts RTF documents to other formats (documentation) | https://www.gnu.org/software/unrtf
- dnf - unrtf - 0.21.10-4.fc45: normalized package name match | Fedora Rawhide package metadata: unrtf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | RTF (Rich Text Format) to other formats converter | https://www.gnu.org/software/unrtf
- pacman - unrtf - 0.21.10-3: normalized package name match | Arch Linux sync databases: unrtf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Command-line program which converts RTF documents to other formats | https://www.gnu.org/software/unrtf/unrtf.html
- MacPorts - unrtf: normalized package name match | MacPorts ports tree: textproc/unrtf/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/unrtf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/unrtf.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
