# 使用 Homebrew, apt, dnf, MacPorts, Nix 安装 dcm2niix

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dcm2niix
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dcm2niix
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:dcm2niix
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dcm2niix>
- **版本:** 1.0.20260416
- **来源摘要:** DICOM to NIfTI converter
- **主页:** <https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage>
- **仓库:** <https://github.com/rordenlab/dcm2niix>
- **上游文档:** <https://github.com/rordenlab/dcm2niix/blob/master/docs/source/dcm2niix.rst>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/rordenlab/dcm2niix/archive/refs/tags/v1.0.20260416.tar.gz>
- **最后更新:** 2026-05-07T20:43:44Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- dcm2niix (cli)
- dcm2niix (别名)

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.0.20260416
- 管理器更新时间: 2026-05-07
- 本地数据: OK
- 上游仓库: https://github.com/rordenlab/dcm2niix
- 检测到的最新版本: v1.0.20260416 (当前)
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

没有找到 dcm2niix 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

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

- 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


## 相关链接

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


## 来源

- 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
