# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, scoop 安装 dmg2img

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

## 安装

```sh
sudo av install brew:dmg2img
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dmg2img
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dmg2img
```

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

### Linux

- apk (92%):

```sh
sudo apk add dmg2img
```

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

- Debian apt (92%):

```sh
sudo apt install dmg2img
```

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

- dnf (92%):

```sh
sudo dnf install dmg2img
```

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

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

### Windows

- Scoop (92%):

```sh
scoop install main/dmg2img
```

  证据: Scoop official bucket manifest trees: bucket/dmg2img.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:dmg2img
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dmg2img>
- **版本:** 1.6.7
- **来源摘要:** Utilities for converting macOS DMG images
- **主页:** <http://vu1tur.eu.org/tools/>
- **上游文档:** <http://vu1tur.eu.org/tools>
- **许可证:** GPL-2.0-only AND MIT
- **源码归档:** <https://cdn.netbsd.org/pub/pkgsrc/distfiles/dmg2img-1.6.7.tar.gz>
- **最后更新:** 2026-06-19T12:30:05-07:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- dmg2img (cli)
- vfdecrypt (cli)
- dmg2img (别名)
- vfdecrypt (别名)

## 依赖

- openssl@4

## macOS 提供的库

- bzip2

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.6.7
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: http://vu1tur.eu.org/tools/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

dmg2img is a small command-line converter for turning Apple compressed DMG disk images into standard HFS+ image files. Its package-manager appeal is that it gives Unix and Windows users a narrow, scriptable way to inspect or convert macOS disk images without Apple's Disk Utility.

### 项目历史

The original project is published from the vu1tur.eu.org tools page, whose dmg2img page describes the tool and carries the upstream changelog. The maintained GitHub tree says it imports the original dmg2img code and tarballs, while Peter Wu's maintenance branch adds bug fixes, security fixes, and other enhancements.

### 采用历史

dmg2img became useful in packaging and recovery workflows because DMG files are common distribution containers for macOS software, but package builders and Linux users often need ordinary image output. Its small C utility shape makes it easy for package managers to ship alongside tools such as vfdecrypt.

### 使用方式

Typical use is a one-shot conversion from a .dmg input to an .img output, followed by mounting or extracting the resulting filesystem image with platform tools. The maintained README also documents optional build support for newer compression handling such as LZFSE.

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

Package nerds care about dmg2img because it is the boring glue that lets non-macOS build and forensic environments handle Apple's disk-image packaging format without a large desktop stack.

### 时间线

- 2017: The upstream changelog lists dmg2img 1.6.7.
- 2020: The maintained GitHub tree records imported upstream code plus maintenance fixes.

### Related projects

- vfdecrypt is shipped with dmg2img for encrypted DMG workflows.
- Apple's Disk Utility and hdiutil cover similar disk-image work on macOS.

### 来源

- <https://vu1tur.eu.org/dmg2img>
- <https://github.com/Lekensteyn/dmg2img>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

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

- Debian apt - dmg2img - 1.6.7+git20201227.a3e4134-0.1: normalized package name match | Debian stable package indexes: dmg2img from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tool for converting compressed dmg files to hfsplus images | http://vu1tur.eu.org/tools/
- Nix - dmg2img: normalized package name match | nixpkgs package indexes: pkgs/by-name/dm/dmg2img/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dmg2img - 1.6.7-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: dmg2img from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tool for converting compressed dmg files to hfsplus images | http://vu1tur.eu.org/tools/
- apk - dmg2img - 1.6.7-r1: normalized package name match | Alpine Linux edge package indexes: dmg2img from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A CLI tool to uncompress Apple's compressed DMG files to the HFS+ IMG format | http://vu1tur.eu.org/tools/
- dnf - dmg2img - 1.6.7-32.20201227gita3e4134.fc44: normalized package name match | Fedora Rawhide package metadata: dmg2img from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Uncompress the Apple compressed disk image files | http://vu1tur.eu.org/tools/
- MacPorts - dmg2img: normalized package name match | MacPorts ports tree: sysutils/dmg2img/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/dmg2img: normalized package name match | Scoop official bucket manifest trees: bucket/dmg2img.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@4](https://www.automicvault.com/zh-hans/pkg/brew/openssl-4/) - Runtime dependency declared by Homebrew.
- [create-dmg](https://www.automicvault.com/zh-hans/pkg/brew/create-dmg/) - Shares av.db curated category or tags: cli, developer-tools, dmg, macos.
- [simg2img](https://www.automicvault.com/zh-hans/pkg/brew/simg2img/) - Shares av.db curated category or tags: cli, conversion, developer-tools, disk-image.
- [bcal](https://www.automicvault.com/zh-hans/pkg/brew/bcal/) - Shares av.db curated category or tags: cli, conversion, developer-tools.
- [brew-php-switcher](https://www.automicvault.com/zh-hans/pkg/brew/brew-php-switcher/) - Shares av.db curated category or tags: cli, developer-tools, macos.
- [bsdconv](https://www.automicvault.com/zh-hans/pkg/brew/bsdconv/) - Shares av.db curated category or tags: cli, conversion, developer-tools.
- [cargo-instruments](https://www.automicvault.com/zh-hans/pkg/brew/cargo-instruments/) - Shares av.db curated category or tags: cli, developer-tools, macos.
- [carthage](https://www.automicvault.com/zh-hans/pkg/brew/carthage/) - Shares av.db curated category or tags: cli, developer-tools, macos.
- [chrome-cli](https://www.automicvault.com/zh-hans/pkg/brew/chrome-cli/) - Shares av.db curated category or tags: cli, developer-tools, macos.
- [code-cli](https://www.automicvault.com/zh-hans/pkg/brew/code-cli/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, openssl, openssl-4.

## Combined YAML source

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