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

Interpret and import Microsoft Publisher content. Version 0.1.5 via Homebrew; verified 2026-05-26.

## Install

```sh
sudo av install brew:libmspub
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libmspub
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libmspub
```

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

### Linux

- apk (92%):

```sh
sudo apk add libmspub
```

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

- Debian apt (92%):

```sh
sudo apt install libmspub-0.1-1
```

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

- dnf (92%):

```sh
sudo dnf install libmspub
```

  Evidence: Fedora Rawhide package metadata: libmspub 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#libmspub
```

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

- pacman (92%):

```sh
sudo pacman -S libmspub
```

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

- zypper (92%):

```sh
sudo zypper install libmspub-0_1-1
```

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

## Package facts

- **Package key:** brew:libmspub
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libmspub>
- **Version:** 0.1.5
- **Source summary:** Interpret and import Microsoft Publisher content
- **Homepage:** <https://wiki.documentfoundation.org/DLP/Libraries/libmspub>
- **Repository:** <https://anongit.freedesktop.org/git/libreoffice/libmspub.git>
- **Upstream docs:** <https://wiki.documentfoundation.org/DLP/Libraries/libmspub>
- **License:** MPL-2.0
- **Source archive:** <https://dev-www.libreoffice.org/src/libmspub/libmspub-0.1.5.tar.xz>
- **Last updated:** 2026-05-26T16:03:49Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- pub2raw (cli)
- pub2xhtml (cli)
- pub2raw (alias)
- pub2xhtml (alias)

## Dependencies

- icu4c@78
- librevenge
- libwpd

## Build dependencies

- boost
- libwpg
- pkgconf

## 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.1.5
- Package-manager updated: 2026-05-26
- Local data: ok
- Upstream repository: https://wiki.documentfoundation.org/DLP/Libraries/libmspub
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

libmspub is a Document Liberation Project library and toolset for reading and converting Microsoft Publisher files. It is part of the LibreOffice-adjacent family of small import-filter libraries that turn proprietary office formats into reusable open-source parsing components.

### Project history

The libmspub repository identifies the project as a library and set of tools for reading and converting Microsoft Publisher files, with build dependencies including Boost, ICU, librevenge, and zlib. Its cgit history shows early 0.0.x tags and the later 0.1.x series, with the 0.1.0 tag appearing in the same long-lived LibreOffice/freedesktop source tree.

The Document Liberation Project context matters: The Document Foundation says LibreOffice developers and file-format engineers began extracting proprietary-format knowledge into reusable libraries, and that the Document Liberation Project was born in April 2014 when the family of libraries had grown large enough to need an independent home.

### Adoption history

LibreOffice 4.0, released in 2013, is listed by LibreOffice's own timeline as adding an import filter for Microsoft Publisher files. After the Document Liberation Project launch, libmspub continued as one of the libraries that let non-LibreOffice software reuse the parser instead of carrying the import code only inside an office suite.

The Document Foundation's 2018 DLP announcement names libmspub as the library for importing MS Publisher documents and says the DLP libraries can be used by other software under OSI-compliant licensing.

### How it is used

libmspub is used through its library API by document converters and through small tools such as pub2raw and pub2xhtml in packaged builds. Its practical job is rescuing .pub content from a proprietary desktop-publishing format into inspectable or convertible output.

### Why package nerds care

Package maintainers care about libmspub because it turns a historically awkward proprietary desktop-publishing format into a normal shared library dependency. It also illustrates the Document Liberation pattern: one narrow parser library, tied to librevenge, with command-line probes for testing and conversion.

### Timeline

- 2013: LibreOffice 4.0 release notes list import-filter support for Microsoft Publisher files.
- 2014-04: The Document Liberation Project is born within The Document Foundation framework.
- 2015-04-09: The Document Foundation describes DLP libraries as independent projects with their own maintainers, release schedules, and licenses.
- 2018-01-22: The Document Foundation announces DLP libraries including libmspub for importing MS Publisher documents.
- 2026-05-26: The cgit log records release-maintenance commits in the libmspub repository.

### Related projects

- libmspub sits beside other Document Liberation import libraries such as libvisio, libwps, libmwaw, libpagemaker, libqxp, and libfreehand. Its parser stack is tied to librevenge, the common document-interface framework used by several DLP libraries.

### Sources

- <https://blog.documentfoundation.org/blog/2018/01/22/dlp-five-new-libraries/>
- <https://cgit.freedesktop.org/libreoffice/libmspub/>
- <https://formulae.brew.sh/formula/libmspub>
- <https://github.com/LibreOffice/libmspub>
- <https://wiki.documentfoundation.org/DLP/Libraries/libmspub>
- <https://www.documentliberation.org/about/>
- <https://www.libreoffice.org/libreoffice-timeline/>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libmspub
- **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 - libmspub-0.1-1 - 0.1.4-3+b5: normalized package name match | Debian stable package indexes: libmspub-0.1-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for parsing the mspub file structure | http://www.freedesktop.org/wiki/Software/libmspub
- Debian apt - libmspub-dev - 0.1.4-3+b5: normalized package name match | Debian stable package indexes: libmspub-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for parsing the mspub file structure -- development | http://www.freedesktop.org/wiki/Software/libmspub
- Debian apt - libmspub-doc - 0.1.4-3: normalized package name match | Debian stable package indexes: libmspub-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for parsing the mspub file structure -- documentation | http://www.freedesktop.org/wiki/Software/libmspub
- Debian apt - libmspub-tools - 0.1.4-3+b5: normalized package name match | Debian stable package indexes: libmspub-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for parsing the mspub file structure -- tools | http://www.freedesktop.org/wiki/Software/libmspub
- Nix - libmspub: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libmspub/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libmspub-0.1-1 - 0.1.4-3build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libmspub-0.1-1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for parsing the mspub file structure | http://www.freedesktop.org/wiki/Software/libmspub
- Ubuntu apt - libmspub-dev - 0.1.4-3build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libmspub-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for parsing the mspub file structure -- development | http://www.freedesktop.org/wiki/Software/libmspub
- Ubuntu apt - libmspub-doc - 0.1.4-3build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libmspub-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for parsing the mspub file structure -- documentation | http://www.freedesktop.org/wiki/Software/libmspub
- Ubuntu apt - libmspub-tools - 0.1.4-3build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libmspub-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for parsing the mspub file structure -- tools | http://www.freedesktop.org/wiki/Software/libmspub
- apk - libmspub - 0.1.4-r24: normalized package name match | Alpine Linux edge package indexes: libmspub from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Import filter and tools for MS Publisher files | https://wiki.documentfoundation.org/DLP/Libraries/libmspub
- apk - libmspub-dev - 0.1.4-r24: normalized package name match | Alpine Linux edge package indexes: libmspub-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Import filter and tools for MS Publisher files (development files) | https://wiki.documentfoundation.org/DLP/Libraries/libmspub
- apk - libmspub-doc - 0.1.4-r24: normalized package name match | Alpine Linux edge package indexes: libmspub-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Import filter and tools for MS Publisher files (documentation) | https://wiki.documentfoundation.org/DLP/Libraries/libmspub
- apk - libmspub-tools - 0.1.4-r24: normalized package name match | Alpine Linux edge package indexes: libmspub-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Import filter and tools for MS Publisher files | https://wiki.documentfoundation.org/DLP/Libraries/libmspub
- dnf - libmspub - 0.1.4-40.fc45: normalized package name match | Fedora Rawhide package metadata: libmspub from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A library for import of Microsoft Publisher documents | http://wiki.documentfoundation.org/DLP/Libraries/libmspub
- dnf - libmspub-devel - 0.1.4-40.fc45: normalized package name match | Fedora Rawhide package metadata: libmspub-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libmspub | http://wiki.documentfoundation.org/DLP/Libraries/libmspub
- dnf - libmspub-doc - 0.1.4-40.fc45: normalized package name match | Fedora Rawhide package metadata: libmspub-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation of libmspub API | http://wiki.documentfoundation.org/DLP/Libraries/libmspub


## Related links

- [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.
- [Documentation packages](https://www.automicvault.com/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [libwpd](https://www.automicvault.com/pkg/brew/libwpd/) - Runtime dependency declared by Homebrew.
- [libwpg](https://www.automicvault.com/pkg/brew/libwpg/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libcdr](https://www.automicvault.com/pkg/brew/libcdr/) - Shares av.db curated category or tags: cli, document-conversion, file-format, library, productivity.
- [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.
- [odt2txt](https://www.automicvault.com/pkg/brew/odt2txt/) - 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.
- [libvisio](https://www.automicvault.com/pkg/brew/libvisio/) - Local package facts share a topical domain. Shared terms: cli, document, file, file-format, format.
- [libetonyek](https://www.automicvault.com/pkg/brew/libetonyek/) - Local package facts share a topical domain. Shared terms: cli, conversion, document, document-conversion, file.

## Combined YAML source

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