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

Interpret and import Microsoft Publisher content. Version 0.1.5 via Homebrew; verified from local package data. Also installable with debian: sudo apt install libmspub-0.1-1.

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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

- 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

- 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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:libmspub
- **Package manager:** Homebrew
- **Version:** 0.1.5
- **Source summary:** Interpret and import Microsoft Publisher content
- **Homepage:** <https://wiki.documentfoundation.org/DLP/Libraries/libmspub>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- pub2raw (alias)
- pub2xhtml (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.1.5
## 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

## 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-41.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A library for import of Microsoft Publisher documents | http://wiki.documentfoundation.org/DLP/Libraries/libmspub
- dnf - libmspub-devel - 0.1.4-41.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for libmspub | http://wiki.documentfoundation.org/DLP/Libraries/libmspub
- dnf - libmspub-doc - 0.1.4-41.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation of libmspub API | http://wiki.documentfoundation.org/DLP/Libraries/libmspub


## Combined YAML source

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