# Install dcm2niix with Homebrew, apt, dnf, MacPorts, Nix

DICOM to NIfTI converter. Version 1.0.20260416 via Homebrew; verified 2026-05-07.

## Install

```sh
sudo av install brew:dcm2niix
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dcm2niix
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dcm2niix
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install dcm2niix
```

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

- dnf (92%):

```sh
sudo dnf install dcm2niix
```

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

  Evidence: nixpkgs package indexes: pkgs/by-name/dc/dcm2niix/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:dcm2niix
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dcm2niix>
- **Version:** 1.0.20260416
- **Source summary:** DICOM to NIfTI converter
- **Homepage:** <https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage>
- **Repository:** <https://github.com/rordenlab/dcm2niix>
- **Upstream docs:** <https://github.com/rordenlab/dcm2niix/blob/master/docs/source/dcm2niix.rst>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/rordenlab/dcm2niix/archive/refs/tags/v1.0.20260416.tar.gz>
- **Last updated:** 2026-05-07T20:43:44Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dcm2niix (cli)
- dcm2niix (alias)

## Build dependencies

- cmake

## 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: 1.0.20260416
- Package-manager updated: 2026-05-07
- Local data: ok
- Upstream repository: https://github.com/rordenlab/dcm2niix
- Upstream latest detected: v1.0.20260416 (current)
## Project history and usage

dcm2niix is a command-line DICOM-to-NIfTI converter for neuroimaging data. The official README frames the problem plainly: medical imaging devices usually save DICOM, while many scientific tools expect the simpler NIfTI format.

### Project history

The GitHub repository was created in 2014 and hosts developmental source code, while stable compiled builds are distributed through GitHub releases and MRIcroGL. The project also documents a NITRC wiki/manual lineage under the dcm2nii name, with dcm2nii listed as the deprecated predecessor for older images and dcm2niix positioned as the modern converter.

### Adoption history

dcm2niix became central to neuroimaging data conversion because it handles DICOM vendor variation, writes NIfTI outputs, and can generate BIDS sidecar JSON. The official README explicitly calls it a core dependency of BIDS converters and lists many wrappers, research pipelines, GUI tools, and platforms that invoke it.

### How it is used

Typical package-manager usage is a simple conversion command against a DICOM folder, optionally selecting output directory, filename format, gzip compression, anonymized BIDS sidecars, and vendor-specific conversion behavior. The CLI also has a defaults file mode and can use pigz for faster compression when available.

### Why package nerds care

dcm2niix is significant because it is the boring executable underneath a large amount of modern neuroimaging workflow automation. Packagers care about it because one small binary unlocks reproducible import into NIfTI and BIDS-oriented pipelines across Linux, macOS, and Windows.

### Timeline

- 2014: Official GitHub repository created.
- 2016: README cites the DICOM-to-NIfTI conversion methods paper by Li, Morgan, Ashburner, Smith, and Rorden.
- 2010s-2020s: README documents adoption by many BIDS converters and neuroimaging pipelines.
- 2026: Official GitHub API metadata shows repository activity continuing into June 2026.

### Related projects

- The README names dcm2nii as the deprecated predecessor and MRIcroGL as a distribution path. It also links dcm2niix to BIDS converters and many neuroimaging tools that shell out to the converter.

### Sources

- <https://github.com/rordenlab/dcm2niix>
- <https://raw.githubusercontent.com/rordenlab/dcm2niix/master/README.md>
- <https://raw.githubusercontent.com/rordenlab/dcm2niix/master/docs/source/dcm2niix.rst>
- <https://api.github.com/repos/rordenlab/dcm2niix>


## Security Notes

No matching local secret-handling manifest was found for dcm2niix. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dcm2niix
- **Version Scheme:** 1
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - dcm2niix - 1.0.20241211-1: normalized package name match | Debian stable package indexes: dcm2niix from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | next generation DICOM to NIfTI converter | https://github.com/rordenlab/dcm2niix
- Nix - dcm2niix: normalized package name match | nixpkgs package indexes: pkgs/by-name/dc/dcm2niix/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dcm2niix - 1.0.20220720-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: dcm2niix from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | next generation DICOM to NIfTI converter | https://github.com/rordenlab/dcm2niix
- dnf - dcm2niix - 1.0.20260416-2.fc45: normalized package name match | Fedora Rawhide package metadata: dcm2niix from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | DICOM to NIfTI converter | https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage
- dnf - python3-dcm2niix - 1.0.20260416-2.fc45: normalized package name match | Fedora Rawhide package metadata: python3-dcm2niix from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Thin wrapper around dcm2niix binary | https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage
- MacPorts - dcm2niix: normalized package name match | MacPorts ports tree: science/dcm2niix/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 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.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [dcmtk](https://www.automicvault.com/pkg/brew/dcmtk/) - Shares av.db curated category or tags: cli, dicom, medical-imaging, science.
- [gdcm](https://www.automicvault.com/pkg/brew/gdcm/) - Shares av.db curated category or tags: cli, dicom, medical-imaging, science.
- [libdicom](https://www.automicvault.com/pkg/brew/libdicom/) - Shares av.db curated category or tags: cli, dicom, medical-imaging, science.
- [itk](https://www.automicvault.com/pkg/brew/itk/) - Shares av.db curated category or tags: cli, medical-imaging, science.
- [aamath](https://www.automicvault.com/pkg/brew/aamath/) - Shares av.db curated category or tags: cli, science.
- [abpoa](https://www.automicvault.com/pkg/brew/abpoa/) - Shares av.db curated category or tags: cli, science.
- [abricate](https://www.automicvault.com/pkg/brew/abricate/) - Shares av.db curated category or tags: cli, science.
- [abyss](https://www.automicvault.com/pkg/brew/abyss/) - Shares av.db curated category or tags: cli, science.

## Combined YAML source

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