# Install gdcm with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Grassroots DICOM library and utilities for medical files. Version 3.2.7 via Homebrew; verified 2026-06-25.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gdcm
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gdcm
```

  Evidence: 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
```

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

- Debian apt (92%):

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

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

- dnf (92%):

```sh
sudo dnf install gdcm
```

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

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: gdcm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:gdcm
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gdcm>
- **Version:** 3.2.7
- **Source summary:** Grassroots DICOM library and utilities for medical files
- **Homepage:** <https://sourceforge.net/projects/gdcm/>
- **Repository:** <https://github.com/malaterre/GDCM>
- **Upstream docs:** <https://gdcm.sourceforge.net/html>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/malaterre/GDCM/archive/refs/tags/v3.2.7.tar.gz>
- **Last updated:** 2026-06-25T13:37:42+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

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

## Dependencies

- charls
- json-c
- openjpeg
- openssl@3

## Build dependencies

- cmake
- ninja
- pkgconf
- python@3.14
- swig

## Uses from macOS

- expat
- libxml2

## 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-07-08
- Package-manager version: 3.2.7
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://github.com/malaterre/GDCM
- Upstream latest detected: v3.2.7 (current)
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

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

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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [openjpeg](https://www.automicvault.com/pkg/brew/openjpeg/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Build dependency declared by Homebrew.
- [itk](https://www.automicvault.com/pkg/brew/itk/) - Popular package that depends on this formula.
- [libdicom](https://www.automicvault.com/pkg/brew/libdicom/) - Shares av.db curated category or tags: cli, dicom, medical-imaging, science.
- [dcm2niix](https://www.automicvault.com/pkg/brew/dcm2niix/) - Shares av.db curated category or tags: cli, dicom, medical-imaging, science.
- [dcmtk](https://www.automicvault.com/pkg/brew/dcmtk/) - Shares av.db curated category or tags: cli, dicom, medical-imaging, science.
- [btllib](https://www.automicvault.com/pkg/brew/btllib/) - Shares av.db curated category or tags: cli, library, science.
- [clhep](https://www.automicvault.com/pkg/brew/clhep/) - Shares av.db curated category or tags: cli, library, science.
- [flann](https://www.automicvault.com/pkg/brew/flann/) - Shares av.db curated category or tags: cli, library, science.
- [flexiblas](https://www.automicvault.com/pkg/brew/flexiblas/) - Shares av.db curated category or tags: cli, library, science.

## Combined YAML source

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


## Sources

- 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
