# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/create-dmg>
- **版本:** 1.3.0
- **来源摘要:** Shell script to build fancy DMGs
- **主页:** <https://github.com/create-dmg/create-dmg>
- **仓库:** <https://github.com/create-dmg/create-dmg>
- **许可证:** MIT
- **源码归档:** <https://github.com/create-dmg/create-dmg/archive/refs/tags/v1.3.0.tar.gz>
- **最后更新:** 2026-07-02T12:12:51Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- create-dmg (cli)
- create-dmg (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.0
- 管理器更新时间: 2026-07-02
- 本地数据: OK
- 上游仓库: https://github.com/create-dmg/create-dmg
- 检测到的最新版本: v1.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

## 源数据库详情

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

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [pyinstaller](https://pkg.so/zh-hans/brew/pyinstaller/) - Shares pkgdb curated category or tags: cli, developer-tools, packaging.
- [melange](https://pkg.so/zh-hans/brew/melange/) - Shares pkgdb curated category or tags: cli, developer-tools, packaging.
- [dylibbundler](https://pkg.so/zh-hans/brew/dylibbundler/) - Shares pkgdb curated category or tags: cli, developer-tools, macos, packaging.
- [python-build](https://pkg.so/zh-hans/brew/python-build/) - Shares pkgdb curated category or tags: cli, developer-tools, packaging.
- [nfpm](https://pkg.so/zh-hans/brew/nfpm/) - Shares pkgdb curated category or tags: cli, developer-tools, packaging.
- [snapcraft](https://pkg.so/zh-hans/brew/snapcraft/) - Shares pkgdb curated category or tags: cli, developer-tools, packaging.
- [msitools](https://pkg.so/zh-hans/brew/msitools/) - Shares pkgdb curated category or tags: cli, developer-tools, packaging.
- [cargo-bundle](https://pkg.so/zh-hans/brew/cargo-bundle/) - Shares pkgdb curated category or tags: cli, developer-tools, packaging.
- [create-react-app](https://pkg.so/zh-hans/npm/create-react-app/) - Local metadata places this package in an adjacent workflow. Shared terms: build, cli, create, developer, developer-tools.
- [dmg-license](https://pkg.so/zh-hans/npm/dmg-license/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, dmg, macos.
- [electron-installer-dmg](https://pkg.so/zh-hans/npm/electron-installer-dmg/) - Local package facts share a topical domain. Shared terms: cli, create, developer, developer-tools, dmg.

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