# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt 安装 gdcm

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

## 安装

```sh
sudo av install brew:gdcm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gdcm
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gdcm
```

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

### Linux

- apk (92%):

```sh
sudo apk add gdcm
```

  证据: Alpine Linux edge package indexes: gdcm from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install gdcm
```

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

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

- pacman (92%):

```sh
sudo pacman -S gdcm
```

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

- zypper (92%):

```sh
sudo zypper install gdcm
```

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

- Debian apt (92%):

```sh
sudo apt install gdcm-doc
```

  证据: Debian stable package indexes: gdcm-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:gdcm
- **软件包管理器:** Homebrew
- **版本:** 3.2.7
- **来源摘要:** Grassroots DICOM library and utilities for medical files
- **主页:** <https://sourceforge.net/projects/gdcm/>
- **仓库:** <https://github.com/malaterre/GDCM>
- **最后更新:** 2026-06-25T13:37:42+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gdcmanon (别名)
- gdcmclean (别名)
- gdcmconv (别名)
- gdcmdiff (别名)
- gdcmdump (别名)
- gdcmgendir (别名)
- gdcmimg (别名)
- gdcminfo (别名)
- gdcmpap3 (别名)
- gdcmraw (别名)
- gdcmscanner (别名)
- gdcmscu (别名)
- gdcmtar (别名)
- gdcmxml (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GDCM, Grassroots DICOM, is a cross-platform C++ implementation and utility suite for DICOM medical imaging files.

### 项目历史

The official SourceForge project describes Grassroots DiCoM as a C++ library for DICOM medical files with bindings for Python, C#, Java, PHP, and Perl.

The project README says the official Git repository is hosted on SourceForge and describes the GitHub repository as a source mirror. It also emphasizes CMake-based builds and nightly testing through the GDCM dashboard.

### 采用历史

GDCM's adoption is centered on medical-imaging workflows that need portable DICOM parsing, conversion, anonymization, de-identification, and network operations outside a full clinical application.

The SourceForge page lists support for common medical-image transfer syntaxes and a VTK bridge, placing GDCM in scientific, imaging, and visualization package stacks.

### 使用方式

The package ships utilities such as gdcmdump, gdcmconv, gdcminfo, gdcmanon, gdcmscanner, gdcmscu, and gdcmxml for inspecting, converting, anonymizing, scanning, networking, archiving, and XML-related DICOM work.

The official project page lists support for RAW, JPEG, JPEG 2000, JPEG-LS, RLE, deflated transfer syntax, SCU operations such as C-ECHO, C-FIND, C-STORE, and C-MOVE, and PS 3.15 de-identification and re-identification mechanisms.

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

GDCM is package-nerd significant because DICOM support is hard to package cleanly: it combines a native C++ library, command-line tools, language bindings, image codecs, medical metadata, and network protocol behavior.

For scientific distributions, it is often the pragmatic DICOM brick under higher-level imaging and visualization workflows.

### 时间线

- SourceForge era: GDCM is distributed as the Grassroots DICOM project with files, mailing lists, tickets, Git, and documentation hosted on SourceForge.
- Modern source era: The README identifies SourceForge as the official Git repository and GitHub as a source-code copy.
- Current project page: SourceForge lists active project updates and the cross-platform DICOM feature set.

### Related projects

- GDCM is related to the DICOM standard and to VTK through its documented VTK bridge.
- It overlaps with other medical-imaging and DICOM toolkits, but the official sources mainly position it by DICOM transfer syntax support, SCU operations, bindings, and command-line applications.

### 来源

- <https://github.com/malaterre/GDCM>
- <https://open.cdash.org/index.php?project=GDCM>
- <https://raw.githubusercontent.com/malaterre/GDCM/master/README.md>
- <https://sourceforge.net/projects/gdcm/>


## 安全说明

library-like package without higher-risk signals.

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

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

- Debian apt - gdcm-doc - 3.0.24-5: normalized package name match | Debian stable package indexes: gdcm-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM documentation | http://gdcm.sourceforge.net/
- Debian apt - libgdcm-dev - 3.0.24-5+b3: normalized package name match | Debian stable package indexes: libgdcm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM development libraries and headers | http://gdcm.sourceforge.net/
- Debian apt - libgdcm-java - 3.0.24-5+b3: normalized package name match | Debian stable package indexes: libgdcm-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM Java bindings | http://gdcm.sourceforge.net/
- Debian apt - libgdcm-tools - 3.0.24-5+b3: normalized package name match | Debian stable package indexes: libgdcm-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM tools and utilities | http://gdcm.sourceforge.net/
- Debian apt - libgdcm3.0t64 - 3.0.24-5+b3: normalized package name match | Debian stable package indexes: libgdcm3.0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM runtime libraries | http://gdcm.sourceforge.net/
- Debian apt - libvtkgdcm-9.1t64 - 3.0.24-5+b3: normalized package name match | Debian stable package indexes: libvtkgdcm-9.1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM VTK runtime libraries | http://gdcm.sourceforge.net/
- Debian apt - libvtkgdcm-dev - 3.0.24-5+b3: normalized package name match | Debian stable package indexes: libvtkgdcm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM VTK development libraries and headers | http://gdcm.sourceforge.net/
- Debian apt - libvtkgdcm-tools - 3.0.24-5+b3: normalized package name match | Debian stable package indexes: libvtkgdcm-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM VTK tools and utilities | http://gdcm.sourceforge.net/
- Debian apt - python3-gdcm - 3.0.24-5+b3: normalized package name match | Debian stable package indexes: python3-gdcm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM Python bindings | http://gdcm.sourceforge.net/
- Debian apt - python3-vtkgdcm - 3.0.24-5+b3: normalized package name match | Debian stable package indexes: python3-vtkgdcm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Grassroots DICOM VTK/Python bindings | http://gdcm.sourceforge.net/
- Nix - gdcm: normalized package name match | nixpkgs package indexes: pkgs/by-name/gd/gdcm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gdcm-doc - 3.0.22-2.1ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gdcm-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Grassroots DICOM documentation | http://gdcm.sourceforge.net/
- Ubuntu apt - libgdcm-cil - 3.0.22-2.1ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgdcm-cil from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Grassroots DICOM CLI bindings | http://gdcm.sourceforge.net/
- Ubuntu apt - libgdcm-dev - 3.0.22-2.1ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgdcm-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Grassroots DICOM development libraries and headers | http://gdcm.sourceforge.net/
- Ubuntu apt - libgdcm-java - 3.0.22-2.1ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgdcm-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Grassroots DICOM Java bindings | http://gdcm.sourceforge.net/
- Ubuntu apt - libgdcm-tools - 3.0.22-2.1ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgdcm-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Grassroots DICOM tools and utilities | http://gdcm.sourceforge.net/


## Combined YAML source

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