# 使用 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libmspub>
- **版本:** 0.1.5
- **来源摘要:** Interpret and import Microsoft Publisher content
- **主页:** <https://wiki.documentfoundation.org/DLP/Libraries/libmspub>
- **上游文档:** <https://wiki.documentfoundation.org/DLP/Libraries/libmspub>
- **许可证:** MPL-2.0
- **源码归档:** <https://dev-www.libreoffice.org/src/libmspub/libmspub-0.1.5.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 依赖

- icu4c@78
- librevenge
- libwpd

## 构建依赖

- boost
- libwpg
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1.5
- 本地数据: OK
- 上游仓库: https://wiki.documentfoundation.org/DLP/Libraries/libmspub
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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

## 源数据库详情

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

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

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation of libmspub API | http://wiki.documentfoundation.org/DLP/Libraries/libmspub


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://pkg.so/zh-hans/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [libwpd](https://pkg.so/zh-hans/brew/libwpd/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libwpg](https://pkg.so/zh-hans/brew/libwpg/) - Build dependency declared by Homebrew.
- [libcdr](https://pkg.so/zh-hans/brew/libcdr/) - Shares pkgdb curated category or tags: cli, document-conversion, file-format, library, productivity.
- [a2ps](https://pkg.so/zh-hans/brew/a2ps/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [docx2txt](https://pkg.so/zh-hans/brew/docx2txt/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [latex2html](https://pkg.so/zh-hans/brew/latex2html/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [latex2rtf](https://pkg.so/zh-hans/brew/latex2rtf/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [odt2txt](https://pkg.so/zh-hans/brew/odt2txt/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [libmwaw](https://pkg.so/zh-hans/brew/libmwaw/) - Shares pkgdb curated category or tags: cli, document-conversion, file-format, library, productivity.
- [rtf2latex2e](https://pkg.so/zh-hans/brew/rtf2latex2e/) - Shares pkgdb curated category or tags: cli, document-conversion, productivity.
- [libvisio](https://pkg.so/zh-hans/brew/libvisio/) - Local package facts share a topical domain. Shared terms: cli, document, file, file-format, format.
- [libetonyek](https://pkg.so/zh-hans/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/mxcl/pkgdb/blob/main/combined/libmspub.yml)


## 来源

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