# 使用 Homebrew, dnf, MacPorts, Nix, pacman 安装 libdicom

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

## 安装

```sh
sudo av install brew:libdicom
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libdicom
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libdicom
```

  证据: MacPorts ports tree: science/libdicom/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install libdicom
```

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

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

- pacman (92%):

```sh
sudo pacman -S libdicom
```

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

## 软件包事实

- **软件包键:** brew:libdicom
- **软件包管理器:** Homebrew
- **版本:** 1.3.0
- **来源摘要:** DICOM WSI read library
- **主页:** <https://github.com/ImagingDataCommons/libdicom>
- **仓库:** <https://github.com/ImagingDataCommons/libdicom>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dcm-dump (别名)
- dcm-getframe (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

libdicom is an Imaging Data Commons C library and command-line tool set for reading DICOM whole-slide imaging files. It is a newer, focused medical-imaging package built around fast metadata/frame access rather than general image rendering.

### 项目历史

The upstream README describes libdicom as a free, MIT-licensed, fast, cross-platform, dependency-light C library and command-line toolkit for DICOM WSI files. It returns compressed frame data rather than RGB pixel arrays, and points users who want image processing toward OpenSlide 4.0 and later.

GitHub release notes show 1.0.x, 1.1.0, and 1.2.0 release-candidate work with fixes for memory use, thread-safety documentation, pointer ownership, DICOM catenation support, faster reads for files with an Extended Offset Table, and command-line behavior improvements.

### 采用历史

The package's adoption story is tightly connected to DICOM WSI and OpenSlide. The README states that OpenSlide 4.0 and later use libdicom to implement DICOM support, making libdicom a small but important bridge between medical-imaging standards and common open-source slide tooling.

### 使用方式

Developers use the C API or Python bindings to inspect metadata and read compressed frame payloads from DICOM WSI files. Command-line users get dcm-dump for structured inspection and dcm-getframe for frame extraction workflows.

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

libdicom is package-nerd interesting because it is a specialized C dependency created for a standards-heavy domain, has no broad dependency stack of its own, and lets larger imaging tools support DICOM WSI without each implementing frame indexing and parsing independently.

### 时间线

- 2023: OpenSlide 4.0 adoption of libdicom for DICOM WSI support was described in the libdicom README image/context.
- 2024: libdicom 1.1.0 release notes recorded memory-use, docs, pointer-ownership, and thread-safety improvements.
- 2025: libdicom 1.2.0-rc1 release notes added DICOM catenation support and faster reads for files with an Extended Offset Table but no fragmented-pixel-data sequence.
- 2026: The README build example referenced libdicom 1.3.0 source-tree naming.

### Related projects

- Imaging Data Commons is the upstream organization. OpenSlide 4.0 and later are the most important adjacent consumer named by upstream, while pylibdicom provides Python access to the C library.

### 来源

- <https://github.com/ImagingDataCommons/libdicom>
- <https://github.com/ImagingDataCommons/libdicom/releases>
- <https://libdicom.readthedocs.io/en/latest>
- <https://raw.githubusercontent.com/ImagingDataCommons/libdicom/main/README.md>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Nix - libdicom: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libdicom/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - libdicom - 1.3.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: libdicom from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | C library and tools for reading DICOM data sets | https://github.com/ImagingDataCommons/libdicom
- dnf - libdicom-devel - 1.3.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: libdicom-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for libdicom | https://github.com/ImagingDataCommons/libdicom
- dnf - libdicom-doc - 1.3.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: libdicom-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation for libdicom | https://github.com/ImagingDataCommons/libdicom
- dnf - libdicom-tools - 1.3.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: libdicom-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Tools for decoding DICOM files | https://github.com/ImagingDataCommons/libdicom
- pacman - libdicom - 1.3.0-1: normalized package name match | Arch Linux sync databases: libdicom from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | C library and tools for reading DICOM data sets | https://github.com/ImagingDataCommons/libdicom
- MacPorts - libdicom: normalized package name match | MacPorts ports tree: science/libdicom/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/libdicom.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libdicom.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
