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

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

## 安装

```sh
sudo av install brew:libwmf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libwmf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libwmf
```

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

### Linux

- apk (92%):

```sh
sudo apk add libwmf
```

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

- dnf (92%):

```sh
sudo dnf install libwmf
```

  证据: Fedora Rawhide package metadata: libwmf 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#libwmf
```

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

- pacman (92%):

```sh
sudo pacman -S libwmf
```

  证据: Arch Linux sync databases: libwmf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libwmf-0.2-7
```

  证据: Debian stable package indexes: libwmf-0.2-7 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libwmf-0_2-7
```

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

## 软件包事实

- **软件包键:** brew:libwmf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libwmf>
- **版本:** 0.2.15
- **来源摘要:** Library for converting WMF (Window Metafile Format) files
- **主页:** <https://github.com/caolanm/libwmf>
- **仓库:** <https://github.com/caolanm/libwmf>
- **许可证:** LGPL-2.0-or-later AND GPL-2.0-or-later AND GD
- **源码归档:** <https://github.com/caolanm/libwmf/releases/download/v0.2.15/libwmf-0.2.15.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- libwmf-config (cli)
- libwmf-fontmap (cli)
- wmf2eps (cli)
- wmf2fig (cli)
- wmf2gd (cli)
- wmf2svg (cli)
- libwmf-config (别名)
- libwmf-fontmap (别名)
- wmf2eps (别名)
- wmf2fig (别名)
- wmf2gd (别名)
- wmf2svg (别名)

## 依赖

- freetype
- jpeg-turbo
- libpng

## 构建依赖

- pkgconf

## macOS 提供的库

- expat

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2.15
- 本地数据: OK
- 上游仓库: https://github.com/caolanm/libwmf
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

libwmf is a library and tool suite for reading Microsoft Windows Metafile graphics and converting them to formats such as SVG, EPS, FIG, GD, and other image outputs. It is a compatibility package for old office, clip-art, and document workflows where WMF files still appear.

### 项目历史

WMF predates libwmf: RFC 7903 says Microsoft released Windows Metafile with Windows 3.0, and Microsoft's protocol documentation describes WMF as an image container made of variable-length metafile records. libwmf exists to interpret that Windows-oriented graphics record stream on non-Windows and package-managed systems.

The libwmf README preserves early project history: Francis James Franklin described a May 2001 restructuring based on Caolan McNamara's libwmf, moving it away from batch-process origins and toward a better-behaved library with device-layer output interfaces. The NEWS file records a libwmf 0.2.1 release on 2001-08-22.

### 采用历史

libwmf became useful in Unix graphics and document-conversion stacks because WMF was common in Microsoft Office-era documents and clip art. Package-manager adoption follows the need to convert or render legacy WMF assets in automated pipelines, desktop software, and document import filters.

### 使用方式

The Homebrew package includes commands such as wmf2eps, wmf2fig, wmf2gd, wmf2svg, libwmf-config, and libwmf-fontmap. Users run it directly for conversion, while applications link the library when they need WMF import or rendering support.

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

libwmf is the sort of package that keeps old document formats from becoming data loss. Its nerd appeal is in the bridge: a small Unix library and converter collection sitting between Microsoft GDI-era metafile records and modern open graphics formats such as SVG.

### 时间线

- 1990: Windows 3.0 era introduces WMF as a Windows graphics interchange format, according to RFC 7903.
- 2001-05-13: The libwmf README describes a major restructuring candidate for libwmf 0.2.0.
- 2001-08-22: libwmf 0.2.1 release is recorded in NEWS.
- 2016-09: RFC 7903 registers Windows image media types including image/wmf and image/x-wmf.
- 2024-04-23: Microsoft publishes protocol revision 18.0 of the Windows Metafile Format specification.
- 2026: The GitHub releases page lists libwmf 0.2.15 with parser validation, resource-limit, test-suite, and MSVC build fixes.

### Related projects

- Related formats and tools include Windows GDI, EMF, EMF+, Microsoft Office and clip-art workflows, SVG, EPS, Xfig, GD, ImageMagick-style conversion pipelines, and document import filters that need legacy vector graphics support.

### 来源

- <https://github.com/caolanm/libwmf>
- <https://github.com/caolanm/libwmf/blob/master/NEWS>
- <https://github.com/caolanm/libwmf/releases>
- <https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-wmf/4813e7fd-52d0-4f42-965f-228c8b7488d2>
- <https://www.rfc-editor.org/info/rfc7903/>


## 安全说明

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:** libwmf
- **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 - libwmf-0.2-7 - 0.2.13-1.1+b3: normalized package name match | Debian stable package indexes: libwmf-0.2-7 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Windows metafile conversion library | http://wvware.sourceforge.net/libwmf.html
- Debian apt - libwmf-0.2-7-gtk - 0.2.13-1.1+b3: normalized package name match | Debian stable package indexes: libwmf-0.2-7-gtk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Windows metafile conversion GTK pixbuf plugin | http://wvware.sourceforge.net/libwmf.html
- Debian apt - libwmf-bin - 0.2.13-1.1+b3: normalized package name match | Debian stable package indexes: libwmf-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Windows metafile conversion tools | http://wvware.sourceforge.net/libwmf.html
- Debian apt - libwmf-dev - 0.2.13-1.1+b3: normalized package name match | Debian stable package indexes: libwmf-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Windows metafile conversion development | http://wvware.sourceforge.net/libwmf.html
- Debian apt - libwmf-doc - 0.2.13-1.1: normalized package name match | Debian stable package indexes: libwmf-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Windows metafile documentation | http://wvware.sourceforge.net/libwmf.html
- Debian apt - libwmf0.2-7 - 0.2.13-1.1+b3: normalized package name match | Debian stable package indexes: libwmf0.2-7 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Windows metafile conversion library - transitional package | http://wvware.sourceforge.net/libwmf.html
- Debian apt - libwmf0.2-7-gtk - 0.2.13-1.1+b3: normalized package name match | Debian stable package indexes: libwmf0.2-7-gtk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Windows metafile conversion GTK pixbuf plugin - transitional package | http://wvware.sourceforge.net/libwmf.html
- Debian apt - libwmflite-0.2-7 - 0.2.13-1.1+b3: normalized package name match | Debian stable package indexes: libwmflite-0.2-7 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Windows metafile conversion lite library | http://wvware.sourceforge.net/libwmf.html
- Nix - libwmf: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libwmf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libwmf-0.2-7 - 0.2.13-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libwmf-0.2-7 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Windows metafile conversion library | http://wvware.sourceforge.net/libwmf.html
- Ubuntu apt - libwmf-0.2-7-gtk - 0.2.13-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libwmf-0.2-7-gtk from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Windows metafile conversion GTK pixbuf plugin | http://wvware.sourceforge.net/libwmf.html
- Ubuntu apt - libwmf-bin - 0.2.13-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libwmf-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Windows metafile conversion tools | http://wvware.sourceforge.net/libwmf.html
- Ubuntu apt - libwmf-dev - 0.2.13-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libwmf-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Windows metafile conversion development | http://wvware.sourceforge.net/libwmf.html
- Ubuntu apt - libwmf-doc - 0.2.13-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libwmf-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Windows metafile documentation | http://wvware.sourceforge.net/libwmf.html
- Ubuntu apt - libwmf0.2-7 - 0.2.13-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libwmf0.2-7 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Windows metafile conversion library - transitional package | http://wvware.sourceforge.net/libwmf.html
- Ubuntu apt - libwmf0.2-7-gtk - 0.2.13-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libwmf0.2-7-gtk from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Windows metafile conversion GTK pixbuf plugin - transitional package | http://wvware.sourceforge.net/libwmf.html


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://pkg.so/zh-hans/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [wv](https://pkg.so/zh-hans/brew/wv/) - Popular package that depends on this formula.
- [fig2dev](https://pkg.so/zh-hans/brew/fig2dev/) - Shares pkgdb curated category or tags: cli, conversion, graphics, media.
- [libemf2svg](https://pkg.so/zh-hans/brew/libemf2svg/) - Shares pkgdb curated category or tags: cli, conversion, graphics, media.
- [babl](https://pkg.so/zh-hans/brew/babl/) - Shares pkgdb curated category or tags: cli, graphics, library, media.
- [aalib](https://pkg.so/zh-hans/brew/aalib/) - Shares pkgdb curated category or tags: cli, graphics, library, media.
- [libsail](https://pkg.so/zh-hans/brew/libsail/) - Shares pkgdb curated category or tags: cli, graphics, library, media.
- [resvg](https://pkg.so/zh-hans/brew/resvg/) - Shares pkgdb curated category or tags: cli, graphics, media.
- [epstool](https://pkg.so/zh-hans/brew/epstool/) - Shares pkgdb curated category or tags: cli, graphics, media.
- [pdf2svg](https://pkg.so/zh-hans/brew/pdf2svg/) - Shares pkgdb curated category or tags: cli, conversion, media.
- [libsixel](https://pkg.so/zh-hans/brew/libsixel/) - Local package facts share a topical domain. Shared terms: cli, config, graphics, jpeg, jpeg-turbo.
- [open-scene-graph](https://pkg.so/zh-hans/brew/open-scene-graph/) - Local package facts share a topical domain. Shared terms: cli, freetype, graphics, jpeg, jpeg-turbo.

## Combined YAML source

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