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

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libmspub
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libmspub
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:libmspub
- **软件包管理器:** Homebrew
- **版本:** 0.1.5
- **来源摘要:** Interpret and import Microsoft Publisher content
- **主页:** <https://wiki.documentfoundation.org/DLP/Libraries/libmspub>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- pub2raw (别名)
- pub2xhtml (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

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


## 来源

- 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
