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

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

## 安装

```sh
sudo av install brew:dcraw
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dcraw
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dcraw
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install dcraw
```

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

- dnf (92%):

```sh
sudo dnf install dcraw
```

  证据: Fedora Rawhide package metadata: dcraw from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#dcraw
```

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

- pacman (92%):

```sh
sudo pacman -S dcraw
```

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

- zypper (92%):

```sh
sudo zypper install dcraw
```

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

## 软件包事实

- **软件包键:** brew:dcraw
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dcraw>
- **版本:** 9.28.0
- **来源摘要:** Digital camera RAW photo decoding software
- **主页:** <https://dechifro.org/dcraw/>
- **上游文档:** <https://dechifro.org/dcraw/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://dechifro.org/dcraw/archive/dcraw-9.28.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dcraw (cli)
- dcraw (别名)

## 依赖

- jasper
- jpeg-turbo
- little-cms2

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 9.28.0
- 本地数据: OK
- 上游仓库: https://dechifro.org/dcraw/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

dcraw is Dave Coffin's portable ANSI C decoder for raw digital camera photos. The official site describes its goal as decoding raw images from any digital camera on any operating system, and calls it a standard tool inside and outside open source.

### 项目历史

The official dcraw page says the RCS history of dcraw.c begins with its conception on February 23, 1997. Instead of using a public forge as its primary home, dcraw has long been distributed from Coffin's own site as source files, an RCS file, tarballs, translations, and an official manpage.

### 采用历史

dcraw became important because camera vendors shipped proprietary Windows and Mac tools while Unix and open-source users needed a portable way to process raw files. The official page lists many applications and plugins that used dcraw, copied parts of dcraw.c, or treated the source as practical documentation for camera formats.

### 使用方式

The manpage documents dcraw as a command-line decoder that can decode raw photos, display metadata, and extract thumbnails. Its options cover identifying files, outputting to stdout, controlling white balance, extracting embedded thumbnails, and producing image formats suitable for further processing.

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

dcraw is package-manager folklore because it compressed a sprawling compatibility problem into one portable C program. For distributions, graphics stacks, and photo tools, it served as both an executable utility and a reference implementation for raw camera formats.

### 时间线

- 1997: dcraw.c history begins according to the official RCS file note
- 2003: Official page links Dave Coffin's Digital Outback Photo essay
- 2005: Official page links press and interview coverage around raw-photo decoding
- 2015: Official manpage updated March 3, 2015

### Related projects

- gPhoto, UFRaw, GIMP rawphoto, RawTherapee, Adobe Camera Raw

### 来源

- <https://dechifro.org/dcraw>
- <https://dechifro.org/dcraw/dcraw.1.html>
- <https://dechifro.org/dcraw/RCS/dcraw.c,v>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - dcraw - 9.28-8: normalized package name match | Debian stable package indexes: dcraw from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | decode raw digital camera images | https://www.dechifro.org/dcraw/
- Nix - dcraw: normalized package name match | nixpkgs package indexes: pkgs/by-name/dc/dcraw/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dcraw - 9.28-5ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: dcraw from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | decode raw digital camera images | https://www.dechifro.org/dcraw/
- dnf - dcraw - 9.28.0-29.fc45: normalized package name match | Fedora Rawhide package metadata: dcraw from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Tool for decoding raw image data from digital cameras | http://www.dechifro.org/dcraw/
- pacman - dcraw - 9.28.0-5: normalized package name match | Arch Linux sync databases: dcraw from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Decodes any raw image from any digital camera | https://www.dechifro.org/dcraw/
- zypper - dcraw - 9.28.0-5.8: normalized package name match | openSUSE Tumbleweed package metadata: dcraw from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Raw Digital Photo Decoding | https://www.dechifro.org/dcraw/
- zypper - dcraw-lang - 9.28.0-5.8: normalized package name match | openSUSE Tumbleweed package metadata: dcraw-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package dcraw | https://www.dechifro.org/dcraw/
- MacPorts - dcraw: normalized package name match | MacPorts ports tree: graphics/dcraw/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [jpeg-turbo](https://pkg.so/zh-hans/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [little-cms2](https://pkg.so/zh-hans/brew/little-cms2/) - Runtime dependency declared by Homebrew.
- [jasper](https://pkg.so/zh-hans/brew/jasper/) - Runtime dependency declared by Homebrew.
- [dnglab](https://pkg.so/zh-hans/brew/dnglab/) - Shares pkgdb curated category or tags: cli, converter, media, photography, raw-images.
- [lensfun](https://pkg.so/zh-hans/brew/lensfun/) - Shares pkgdb curated category or tags: cli, media, photography.
- [flac](https://pkg.so/zh-hans/brew/flac/) - Shares pkgdb curated category or tags: cli, media, metadata.
- [libraw](https://pkg.so/zh-hans/brew/libraw/) - Shares pkgdb curated category or tags: cli, media, raw-images.
- [exiftool](https://pkg.so/zh-hans/brew/exiftool/) - Shares pkgdb curated category or tags: cli, media, metadata.
- [taglib](https://pkg.so/zh-hans/brew/taglib/) - Shares pkgdb curated category or tags: cli, media, metadata.
- [media-info](https://pkg.so/zh-hans/brew/media-info/) - Shares pkgdb curated category or tags: cli, media, metadata.
- [fontforge](https://pkg.so/zh-hans/brew/fontforge/) - Shares pkgdb curated category or tags: cli, converter, media.
- [geeqie](https://pkg.so/zh-hans/brew/geeqie/) - Local package facts share a topical domain. Shared terms: cli, cms2, jpeg, jpeg-turbo, little.

## Combined YAML source

View the package source record on GitHub. [combined/dcraw.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dcraw.yml)


## 来源

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