# Install libcdr with Homebrew, apk, dnf, Nix, pacman, apt, zypper

C++ library to parse the file format of CorelDRAW documents. Version 0.1.9 via Homebrew; verified from local package data. Also installable with debian: sudo apt install libcdr-0.1-1.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libcdr
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libcdr
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:libcdr
- **Package manager:** Homebrew
- **Version:** 0.1.9
- **Source summary:** C++ library to parse the file format of CorelDRAW documents
- **Homepage:** <https://wiki.documentfoundation.org/DLP/Libraries/libcdr>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cdr2raw (alias)
- cdr2text (alias)
- cdr2xhtml (alias)
- cmx2raw (alias)
- cmx2text (alias)
- cmx2xhtml (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.1.9
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Other Package-Manager Records

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


## Sources

- 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
