# 使用 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libdicom>
- **版本:** 1.3.0
- **来源摘要:** DICOM WSI read library
- **主页:** <https://github.com/ImagingDataCommons/libdicom>
- **仓库:** <https://github.com/ImagingDataCommons/libdicom>
- **上游文档:** <https://libdicom.readthedocs.io/en/latest>
- **许可证:** MIT
- **源码归档:** <https://github.com/ImagingDataCommons/libdicom/releases/download/v1.3.0/libdicom-1.3.0.tar.xz>
- **最后更新:** 2026-06-06T14:20:17Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

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

## 依赖

- uthash

## 构建依赖

- meson
- ninja

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.3.0
- 管理器更新时间: 2026-06-06
- 本地数据: OK
- 上游仓库: https://github.com/ImagingDataCommons/libdicom
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

## 源数据库详情

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

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

- 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-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C library and tools for reading DICOM data sets | https://github.com/ImagingDataCommons/libdicom
- dnf - libdicom-devel - 1.3.0-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libdicom | https://github.com/ImagingDataCommons/libdicom
- dnf - libdicom-doc - 1.3.0-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation for libdicom | https://github.com/ImagingDataCommons/libdicom
- dnf - libdicom-tools - 1.3.0-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://www.automicvault.com/zh-hans/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [meson](https://www.automicvault.com/zh-hans/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/zh-hans/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [openslide](https://www.automicvault.com/zh-hans/pkg/brew/openslide/) - Popular package that depends on this formula.
- [gdcm](https://www.automicvault.com/zh-hans/pkg/brew/gdcm/) - Shares av.db curated category or tags: cli, dicom, medical-imaging, science.
- [dcm2niix](https://www.automicvault.com/zh-hans/pkg/brew/dcm2niix/) - Shares av.db curated category or tags: cli, dicom, medical-imaging, science.
- [dcmtk](https://www.automicvault.com/zh-hans/pkg/brew/dcmtk/) - Shares av.db curated category or tags: cli, dicom, medical-imaging, science.
- [itk](https://www.automicvault.com/zh-hans/pkg/brew/itk/) - Shares av.db curated category or tags: cli, medical-imaging, science.
- [abpoa](https://www.automicvault.com/zh-hans/pkg/brew/abpoa/) - Shares av.db curated category or tags: c-library, cli, science.
- [calceph](https://www.automicvault.com/zh-hans/pkg/brew/calceph/) - Shares av.db curated category or tags: c-library, cli, science.
- [cddlib](https://www.automicvault.com/zh-hans/pkg/brew/cddlib/) - Shares av.db curated category or tags: c-library, cli, science.

## Combined YAML source

View the package source record on GitHub. [combined/libdicom.yml](https://github.com/automic-vault/db/blob/main/combined/libdicom.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
