# 使用 Homebrew, Nix, zypper 安装 libredwg

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libredwg
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:libredwg
- **软件包管理器:** Homebrew
- **版本:** 0.13.3
- **来源摘要:** DWG utilities
- **主页:** <https://www.gnu.org/software/libredwg/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dwg2SVG (别名)
- dwg2dxf (别名)
- dwgadd (别名)
- dwgbmp (别名)
- dwgfilter (别名)
- dwggrep (别名)
- dwglayers (别名)
- dwgread (别名)
- dwgrewrite (别名)
- dwgwrite (别名)
- dxf2dwg (别名)
- dxfwrite (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

没有找到 libredwg 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

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


## Combined YAML source

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


## 来源

- pkg.so package database
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
