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

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

## 安装

```sh
sudo av install brew:libcdr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libcdr
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libcdr
```

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

- dnf (92%):

```sh
sudo dnf install libcdr
```

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

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

- pacman (92%):

```sh
sudo pacman -S libcdr
```

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

- Debian apt (92%):

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

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

- zypper (92%):

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

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

## 软件包事实

- **软件包键:** brew:libcdr
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libcdr>
- **版本:** 0.1.9
- **来源摘要:** C++ library to parse the file format of CorelDRAW documents
- **主页:** <https://wiki.documentfoundation.org/DLP/Libraries/libcdr>
- **上游文档:** <https://wiki.documentfoundation.org/DLP/Libraries/libcdr>
- **许可证:** MPL-2.0
- **源码归档:** <https://dev-www.libreoffice.org/src/libcdr/libcdr-0.1.9.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cdr2raw (cli)
- cdr2text (cli)
- cdr2xhtml (cli)
- cmx2raw (cli)
- cmx2text (cli)
- cmx2xhtml (cli)
- cdr2raw (别名)
- cdr2text (别名)
- cdr2xhtml (别名)
- cmx2raw (别名)
- cmx2text (别名)
- cmx2xhtml (别名)

## 依赖

- icu4c@78
- librevenge
- little-cms2

## 构建依赖

- boost
- pkgconf

## 安装行为

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

## 版本和新鲜度

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

libcdr is a Document Liberation Project library and tool set for reading and converting binary CorelDRAW documents. It belongs to the LibreOffice-adjacent family of import libraries that turn proprietary office and graphics formats into reusable parsers.

### 项目历史

The libcdr README describes the project as a library and set of tools for reading and converting binary files produced by CorelDRAW, with the primary source in LibreOffice Gerrit and a mirror on freedesktop/GitHub. Its build dependencies, including librevenge, place it in the Document Liberation Project import-library pattern.

The Document Liberation Project explains the broader origin: after LibreOffice forked in 2010, contributors and file-format specialists worked on proprietary format interoperability, beginning with libvisio in Google Summer of Code 2011 and expanding to formats including CorelDraw, MS Publisher, Apple Keynote, and old Macintosh formats. In April 2014 the family became the Document Liberation Project under The Document Foundation.

### 采用历史

libcdr's main adoption path is through office and graphics applications that need CorelDRAW import without embedding a private reverse-engineered parser. The Document Liberation Project lists users of its import libraries including LibreOffice, Inkscape, Scribus, Calligra, AbiWord, and CorelDRAW File Viewer.

A 2017 Document Foundation community post announced libcdr 0.1.4 alongside other DLP releases and noted OSS-Fuzz-related security hardening and build fixes. That is the kind of maintenance work that made these small parser libraries valuable to distributions: they are format-compatibility code, but also attack surface for untrusted documents.

### 使用方式

The package exposes conversion utilities such as cdr2raw, cdr2text, cdr2xhtml, cmx2raw, cmx2text, and cmx2xhtml. In normal desktop use, the library is more often pulled in by applications that need to import CorelDRAW or CMX documents.

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

libcdr is significant because it shows the Unix packaging model applied to document import filters: one reverse-engineered parser, maintained outside a single office suite, shared by multiple applications and distributions. It also represents the quiet infrastructure behind 'LibreOffice can open this old proprietary file' release notes.

### 时间线

- 2010: LibreOffice project began, creating the community context described by the Document Liberation Project.
- 2011: libvisio emerged as an early LibreOffice file-format interoperability library through Google Summer of Code.
- 2014-04: The Document Liberation Project was founded under The Document Foundation.
- 2017-09-20: TDF blog announced libcdr 0.1.4 with OSS-Fuzz hardening and build fixes.

### Related projects

- Related projects include LibreOffice, librevenge, libvisio, libfreehand, libzmf, libwpd, libwpg, Inkscape, Scribus, Calligra, AbiWord, and other Document Liberation Project import libraries.

### 来源

- <https://blog.documentfoundation.org/blog/2017/09/20/document-liberation-project-new-releases/>
- <https://formulae.brew.sh/formula/libcdr>
- <https://gerrit.libreoffice.org/gitweb?p=libcdr.git%3Ba%3Dsummary>
- <https://github.com/LibreOffice/libcdr/blob/master/README>
- <https://www.documentliberation.org/about/>


## 安全说明

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:** libcdr
- **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 - libcdr-0.1-1 - 0.1.7-1+b3: normalized package name match | Debian stable package indexes: libcdr-0.1-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for reading and converting Corel DRAW files | http://freedesktop.org/wiki/Software/libcdr
- Debian apt - libcdr-dev - 0.1.7-1+b3: normalized package name match | Debian stable package indexes: libcdr-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for reading and converting Corel DRAW files -- development | http://freedesktop.org/wiki/Software/libcdr
- Debian apt - libcdr-doc - 0.1.7-1: normalized package name match | Debian stable package indexes: libcdr-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for reading and converting Corel DRAW files -- documentation | http://freedesktop.org/wiki/Software/libcdr
- Debian apt - libcdr-tools - 0.1.7-1+b3: normalized package name match | Debian stable package indexes: libcdr-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for reading and converting Corel DRAW files -- tools | http://freedesktop.org/wiki/Software/libcdr
- Nix - libcdr: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libcdr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcdr-0.1-1 - 0.1.7-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libcdr-0.1-1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for reading and converting Corel DRAW files | http://freedesktop.org/wiki/Software/libcdr
- Ubuntu apt - libcdr-dev - 0.1.7-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libcdr-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for reading and converting Corel DRAW files -- development | http://freedesktop.org/wiki/Software/libcdr
- Ubuntu apt - libcdr-doc - 0.1.7-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libcdr-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for reading and converting Corel DRAW files -- documentation | http://freedesktop.org/wiki/Software/libcdr
- Ubuntu apt - libcdr-tools - 0.1.7-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libcdr-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for reading and converting Corel DRAW files -- tools | http://freedesktop.org/wiki/Software/libcdr
- apk - libcdr - 0.1.9-r0: normalized package name match | Alpine Linux edge package indexes: libcdr from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Import filter and tools for Corel DRAW files | https://wiki.documentfoundation.org/DLP/Libraries/libcdr
- apk - libcdr-dev - 0.1.9-r0: normalized package name match | Alpine Linux edge package indexes: libcdr-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Import filter and tools for Corel DRAW files (development files) | https://wiki.documentfoundation.org/DLP/Libraries/libcdr
- apk - libcdr-doc - 0.1.9-r0: normalized package name match | Alpine Linux edge package indexes: libcdr-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Import filter and tools for Corel DRAW files (documentation) | https://wiki.documentfoundation.org/DLP/Libraries/libcdr
- apk - libcdr-tools - 0.1.9-r0: normalized package name match | Alpine Linux edge package indexes: libcdr-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Import filter and tools for Corel DRAW files | https://wiki.documentfoundation.org/DLP/Libraries/libcdr
- dnf - libcdr - 0.1.8-7.fc45: normalized package name match | Fedora Rawhide package metadata: libcdr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A library for import of CorelDRAW drawings | http://wiki.documentfoundation.org/DLP/Libraries/libcdr
- dnf - libcdr-devel - 0.1.8-7.fc45: normalized package name match | Fedora Rawhide package metadata: libcdr-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for libcdr | http://wiki.documentfoundation.org/DLP/Libraries/libcdr
- dnf - libcdr-doc - 0.1.8-7.fc45: normalized package name match | Fedora Rawhide package metadata: libcdr-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation of libcdr API | http://wiki.documentfoundation.org/DLP/Libraries/libcdr


## 相关链接

- [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.
- [little-cms2](https://pkg.so/zh-hans/brew/little-cms2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libmspub](https://pkg.so/zh-hans/brew/libmspub/) - 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.
- [feishu2md](https://pkg.so/zh-hans/brew/feishu2md/) - 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.
- [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/libcdr.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libcdr.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
