# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 0.1.9
- **来源摘要:** C++ library to parse the file format of CorelDRAW documents
- **主页:** <https://wiki.documentfoundation.org/DLP/Libraries/libcdr>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation of libcdr API | http://wiki.documentfoundation.org/DLP/Libraries/libcdr


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
