# Install odt2txt with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Convert OpenDocument files to plain text. Version 0.5 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:odt2txt
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install odt2txt
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install odt2txt
```

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

### Linux

- apk (92%):

```sh
sudo apk add odt2txt
```

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

- Debian apt (92%):

```sh
sudo apt install odt2txt
```

  Evidence: Debian stable package indexes: odt2txt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install odt2txt
```

  Evidence: Fedora Rawhide package metadata: odt2txt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#odt2txt
```

  Evidence: nixpkgs package indexes: pkgs/by-name/od/odt2txt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S odt2txt
```

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

- zypper (92%):

```sh
sudo zypper install odt2txt
```

  Evidence: openSUSE Tumbleweed package metadata: odt2txt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:odt2txt
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/odt2txt>
- **Version:** 0.5
- **Source summary:** Convert OpenDocument files to plain text
- **Homepage:** <https://github.com/dstosberg/odt2txt/>
- **Repository:** <https://github.com/dstosberg/odt2txt>
- **Upstream docs:** <https://github.com/dstosberg/odt2txt#readme>
- **License:** GPL-2.0-only
- **Source archive:** <https://github.com/dstosberg/odt2txt/archive/refs/tags/v0.5.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- odt2txt (cli)
- odt2txt (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.5
- Local data: ok
- Upstream repository: https://github.com/dstosberg/odt2txt
- Upstream latest detected: v0.5 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

odt2txt is a small C command-line converter that extracts plain text from OpenDocument Text files and related office-document formats. Its purpose is intentionally narrow: make ODT content usable in terminals, scripts, indexes, and text-processing pipelines.

### Project history

The project predates its GitHub repository. A Debian ITP thread from January 2007 identified odt2txt 0.2, Dennis Stosberg as upstream author, GPL-2 licensing, C as the implementation language, and the package description as a simple converter from OpenDocument Text to plain text.

The GitHub repository, created on November 29, 2013, preserves the tool's focused design. The README says odt2txt extracts text from OpenDocument Text files produced by LibreOffice, OpenOffice, StarOffice, KOffice, and others, and can also handle related formats such as OpenOffice.org XML, plus limited extraction from ODS and ODP.

### Adoption history

odt2txt's adoption path is classic distribution packaging. The input metadata lists packages for Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE, which fits a small utility used by scripts and distributions rather than by a branded developer platform.

The Debian packaging request from 2007 emphasized small size, speed, many encodings, and locale adaptation. Those are exactly the properties that make a document converter attractive to Unix pipelines and package maintainers.

### How it is used

Users run `odt2txt` to extract document text for search indexing, diffing, grep-style inspection, backup audits, mail or web previews, and batch conversion where opening a full office suite is too heavy.

The README highlights practical portability: the tool supports multiple output encodings, adapts to the user's locale, substitutes common characters with ASCII lookalikes when needed, is written in C, has few dependencies, and runs on Linux, macOS, Windows, BSDs, Cygwin, Solaris, and HP-UX.

### Why package nerds care

For package nerds, odt2txt is a durable example of a small format utility that survives because office documents are zip-and-XML bundles but users often need plain text. Its value is not novelty; it is predictable behavior, minimal dependencies, and packaging reach.

The package also records a bit of office-suite history: it names OpenOffice.org XML, StarOffice, KOffice, LibreOffice, and OpenDocument, tying modern ODT extraction back to pre-LibreOffice document formats.

### Timeline

- January 2007: Debian's ITP listed odt2txt 0.2 and described it as a GPL-2 C utility for extracting text from OpenDocument Text files.
- June 23, 2008: The man page version referenced odt2txt 0.5.
- November 29, 2013: The GitHub repository was created, likely as a migrated or mirrored home for an older upstream project.
- By July 1, 2026: Package metadata listed odt2txt across major Unix-like package managers.

### Related projects

- odt2txt is related to LibreOffice, OpenOffice, StarOffice, KOffice, OpenDocument, and other document-conversion utilities such as antiword, catdoc, pandoc, and text extraction tools used in search indexes.

### Sources

- <https://api.github.com/repos/dstosberg/odt2txt>
- <https://formulae.brew.sh/formula/odt2txt>
- <https://github.com/dstosberg/odt2txt>
- <https://github.com/dstosberg/odt2txt/blob/master/odt2txt.1>
- <https://groups.google.com/g/linux.debian.devel/c/anM5ZxpnB6I>
- <https://man.archlinux.org/man/extra/odt2txt/odt2txt.1.en>


## Security Notes

narrow executable package without higher-risk signals.

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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** odt2txt
- **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

## Other Package-Manager Records

- Debian apt - odt2txt - 0.5-7: normalized package name match | Debian stable package indexes: odt2txt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple converter from OpenDocument Text to plain text | https://github.com/dstosberg/odt2txt/
- Nix - odt2txt: normalized package name match | nixpkgs package indexes: pkgs/by-name/od/odt2txt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - odt2txt - 0.5-7build1: normalized package name match | Ubuntu 24.04 LTS package indexes: odt2txt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | simple converter from OpenDocument Text to plain text | https://github.com/dstosberg/odt2txt/
- apk - odt2txt - 0.5_git20170928-r1: normalized package name match | Alpine Linux edge package indexes: odt2txt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | extracts the text out of OpenDocument Texts | https://github.com/dstosberg/odt2txt/
- apk - odt2txt-doc - 0.5_git20170928-r1: normalized package name match | Alpine Linux edge package indexes: odt2txt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | extracts the text out of OpenDocument Texts (documentation) | https://github.com/dstosberg/odt2txt/
- dnf - odt2txt - 0.5-18.fc44: normalized package name match | Fedora Rawhide package metadata: odt2txt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Converts an OpenDocument to plain text | http://stosberg.net/odt2txt/
- pacman - odt2txt - 0.5-6: normalized package name match | Arch Linux sync databases: odt2txt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | extracts the text out of OpenDocument Texts | https://github.com/dstosberg/odt2txt/
- zypper - odt2txt - 0.5-2.8: normalized package name match | openSUSE Tumbleweed package metadata: odt2txt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Converter from OpenDocument Text to plain text | https://github.com/dstosberg
- MacPorts - odt2txt: normalized package name match | MacPorts ports tree: textproc/odt2txt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [docx2txt](https://www.automicvault.com/pkg/brew/docx2txt/) - Shares av.db curated category or tags: cli, document-conversion, productivity.
- [hevea](https://www.automicvault.com/pkg/brew/hevea/) - Shares av.db curated category or tags: cli, document-conversion, productivity.
- [latex2html](https://www.automicvault.com/pkg/brew/latex2html/) - Shares av.db curated category or tags: cli, document-conversion, productivity.
- [latex2rtf](https://www.automicvault.com/pkg/brew/latex2rtf/) - Shares av.db curated category or tags: cli, document-conversion, productivity.
- [libmspub](https://www.automicvault.com/pkg/brew/libmspub/) - Shares av.db curated category or tags: cli, document-conversion, productivity.
- [rtf2latex2e](https://www.automicvault.com/pkg/brew/rtf2latex2e/) - Shares av.db curated category or tags: cli, document-conversion, productivity.
- [unoserver](https://www.automicvault.com/pkg/brew/unoserver/) - Shares av.db curated category or tags: cli, document-conversion, productivity.
- [feishu2md](https://www.automicvault.com/pkg/brew/feishu2md/) - Shares av.db curated category or tags: cli, document-conversion, productivity.
- [j2m](https://www.automicvault.com/pkg/npm/j2m/) - Local package facts share a topical domain. Shared terms: cli, conversion, convert, document, document-conversion.

## Combined YAML source

View the package source record on GitHub. [combined/odt2txt.yml](https://github.com/automic-vault/db/blob/main/combined/odt2txt.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
