# 使用 Homebrew, MacPorts, Nix 安装 create-dmg

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

## 安装

```sh
sudo av install brew:create-dmg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install create-dmg
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install create-dmg
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#create-dmg
```

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

## 软件包事实

- **软件包键:** brew:create-dmg
- **软件包管理器:** Homebrew
- **版本:** 1.3.0
- **来源摘要:** Shell script to build fancy DMGs
- **主页:** <https://github.com/create-dmg/create-dmg>
- **仓库:** <https://github.com/create-dmg/create-dmg>
- **最后更新:** 2026-07-02T12:12:51Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- create-dmg (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.0
## 项目历史与用法

create-dmg is a macOS command-line packaging helper for producing polished disk images from a source folder. It wraps standard macOS disk-image tooling with options for Finder window layout, icons, background images, Applications drop links, encryption, signing, and notarization.

### 项目历史

The project README credits Andrey Tarantsov as the original creator and says Andrew Janke helped substantially with the project in May 2020. The project is maintained as a shell script in a public GitHub repository under the create-dmg organization.

### 采用历史

The README documents Homebrew installation as the first installation path, followed by release downloads and cloning the repository. That distribution style made create-dmg convenient for macOS developers who wanted repeatable DMG creation in release scripts without maintaining their own AppleScript and hdiutil wrappers.

### 使用方式

The normal workflow is to run create-dmg with an output .dmg name and a source folder, then pass options for volume name, icon placement, background art, filesystem format, encryption, codesigning, notarization, and related macOS packaging details.

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

For package maintainers, create-dmg matters because DMG layout is a macOS distribution detail that is easy to get wrong and awkward to reproduce. The tool packages common release-engineering conventions into one script that Homebrew, MacPorts, and Nix can expose as a small CLI dependency.

### 时间线

- Original project: Created by Andrey Tarantsov
- 2020-05: README notes substantial help from Andrew Janke
- README: Documents Homebrew installation and release-download installation

### Related projects

- The README lists node-appdmg and dmgbuild as alternatives for building macOS disk images.

### 来源

- <https://github.com/create-dmg/create-dmg#readme>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

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

- Nix - create-dmg: normalized package name match | nixpkgs package indexes: pkgs/by-name/cr/create-dmg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - create-dmg: normalized package name match | MacPorts ports tree: sysutils/create-dmg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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