# Install unrtf with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman

RTF to other formats converter. Version 0.21.10 via Homebrew; verified from local package data. Also installable with debian: sudo apt install unrtf.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install unrtf
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install unrtf
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:unrtf
- **Package manager:** Homebrew
- **Version:** 0.21.10
- **Source summary:** RTF to other formats converter
- **Homepage:** <https://www.gnu.org/software/unrtf/>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- unrtf (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.21.10
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- 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)


## Sources

- 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
