# Install libredwg with Homebrew, Nix, zypper

DWG utilities. Version 0.13.3 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#libredwg.

## Install

```sh
sudo av install brew:libredwg
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libredwg
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#libredwg
```

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

- zypper (92%):

```sh
sudo zypper install libredwg-devel
```

  Evidence: openSUSE Tumbleweed package metadata: libredwg-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:libredwg
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libredwg>
- **Version:** 0.13.3
- **Source summary:** DWG utilities
- **Homepage:** <https://www.gnu.org/software/libredwg/>
- **Upstream docs:** <https://www.gnu.org/software/libredwg/>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://ftpmirror.gnu.org/gnu/libredwg/libredwg-0.13.3.tar.gz>
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- dwg2SVG (cli)
- dwg2dxf (cli)
- dwgadd (cli)
- dwgbmp (cli)
- dwgfilter (cli)
- dwggrep (cli)
- dwglayers (cli)
- dwgread (cli)
- dwgrewrite (cli)
- dwgwrite (cli)
- dxf2dwg (cli)
- dxfwrite (cli)
- dwg2SVG (alias)
- dwg2dxf (alias)
- dwgadd (alias)
- dwgbmp (alias)
- dwgfilter (alias)
- dwggrep (alias)
- dwglayers (alias)
- dwgread (alias)
- dwgrewrite (alias)
- dwgwrite (alias)
- dxf2dwg (alias)
- dxfwrite (alias)

## Build dependencies

- autoconf
- automake
- texinfo

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 0.13.3
- Local data: ok
- Upstream repository: https://www.gnu.org/software/libredwg/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GNU LibreDWG is a GPLv3-or-later C library and command-line tool set for reading and writing AutoCAD DWG files. Its package-manager value is straightforward: it gives free software systems a scriptable DWG decoder/encoder and conversion utilities without relying on proprietary OpenDWG/ODA libraries.

### Project history

The GNU project page describes LibreDWG as a free replacement for OpenDWG libraries and says it is based on LibDWG, originally written by Felipe Castro. The manual records the project lineage more specifically: LibreDWG came out of code from the QCad Community Edition product from RibbonSoft, and the old libdwg code was forked to LibreDWG in 2009.

LibreDWG's long-running engineering problem is that DWG is proprietary. The manual states that the format had to be reverse-engineered and that, for LibreDWG 0.13.4 dated March 17, 2026, coverage was approximately 99%, with reading support across many DWG revisions and writing support still more constrained for newer formats.

### Adoption history

LibreDWG has mattered most to CAD, GIS, and document-conversion users who need batchable access to DWG data in free software environments. The manual names FreeCAD and GRASS GIS as projects using DWG or specifically LibreDWG, and mentions plans around SolveSpace, LibreCAD, FreeCAD, OpenSCAD, and PythonCAD.

Its adoption has been cautious because DWG compatibility is a moving target and because writing newer DWG versions is harder than reading them. That niche, however, is exactly why distributions package it: even partial DWG support is valuable when users need automated inspection, conversion, text search, layer listing, SVG/PostScript output, DXF, JSON, or GeoJSON workflows.

### How it is used

Packaged users usually encounter LibreDWG through tools such as dwgread, dwgwrite, dwgrewrite, dwg2dxf, dxf2dwg, dwg2SVG, dwggrep, and dwglayers, or by linking C programs against libredwg. The manual explicitly notes that programs should link with -lredwg, because the shared object is named libredwg and -llibredwg would look for a non-existent liblibredwg.

### Why package nerds care

LibreDWG is a classic package-nerd package: legally and technically difficult format support, a GNU maintenance story, CLI utilities, reverse-engineered coverage tables, and bindings/converters that unblock other packages. It is also a reminder that data-liberation libraries often ship as humble formulae even when their underlying work is years of file-format archaeology.

### Timeline

- 2009: The old libdwg code was forked to LibreDWG.
- 2010-2025: The GNU manual copyright range records continuing FSF documentation maintenance.
- 2026-03-17: GNU LibreDWG manual version 0.13.4 dated.
- 2026-03-19: GNU generated manual page last updated.

### Related projects

- Related projects include LibDWG, QCad Community Edition, FreeCAD, GRASS GIS, LibreCAD, SolveSpace, OpenSCAD, PythonCAD, libdxfrw, libopencad, ACadSharp, OpenDWG, and the Open Design Alliance ecosystem.

### Sources

- <https://github.com/LibreDWG/libredwg>
- <https://www.gnu.org/software/libredwg/>
- <https://www.gnu.org/software/libredwg/manual/LibreDWG.html>


## Security Notes

No matching local secret-handling manifest was found for libredwg. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libredwg
- **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

## Other Package-Manager Records

- Nix - libredwg: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libredwg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - libredwg-devel - 0.14.8413-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libredwg-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for libredwg | https://www.gnu.org/software/libredwg/
- zypper - libredwg-tools - 0.14.8413-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libredwg-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command line utilities for handling DWG file | https://www.gnu.org/software/libredwg/
- zypper - libredwg0 - 0.14.8413-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libredwg0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A library to handle DWG files | https://www.gnu.org/software/libredwg/


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://pkg.so/brew-utility-packages/) - Matched Homebrew package provider.
- [autoconf](https://pkg.so/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/brew/automake/) - Build dependency declared by Homebrew.
- [texinfo](https://pkg.so/brew/texinfo/) - Build dependency declared by Homebrew.
- [cairo](https://pkg.so/brew/cairo/) - Shares pkgdb curated category or tags: cli, graphics-library, media.
- [librsvg](https://pkg.so/brew/librsvg/) - Shares pkgdb curated category or tags: cli, graphics-library, media.
- [plotutils](https://pkg.so/brew/plotutils/) - Shares pkgdb curated category or tags: cli, graphics-library, media.
- [unrtf](https://pkg.so/brew/unrtf/) - Shares pkgdb curated category or tags: cli, gnu, media.
- [coin3d](https://pkg.so/brew/coin3d/) - Shares pkgdb curated category or tags: cli, graphics-library, media.
- [admesh](https://pkg.so/brew/admesh/) - Shares pkgdb curated category or tags: cad, cli, media.
- [deark](https://pkg.so/brew/deark/) - Shares pkgdb curated category or tags: cli, file-conversion, media.
- [ocrad](https://pkg.so/brew/ocrad/) - Shares pkgdb curated category or tags: cli, gnu, media.

## Combined YAML source

View the package source record on GitHub. [combined/libredwg.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libredwg.yml)


## Sources

- pkg.so package database
- 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
