# 使用 Homebrew, Nix, zypper 安装 dwarfs

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

## 安装

```sh
sudo av install brew:dwarfs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dwarfs
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dwarfs
```

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

- zypper (92%):

```sh
sudo zypper install dwarfs
```

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

## 软件包事实

- **软件包键:** brew:dwarfs
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dwarfs>
- **版本:** 0.15.6
- **来源摘要:** Fast high compression read-only file system for Linux, Windows, and macOS
- **主页:** <https://github.com/mhx/dwarfs>
- **仓库:** <https://github.com/mhx/dwarfs>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/mhx/dwarfs/releases/download/v0.15.6/dwarfs-0.15.6.tar.xz>
- **最后更新:** 2026-07-26T17:46:02Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dwarfsck (cli)
- dwarfsextract (cli)
- mkdwarfs (cli)
- dwarfsck (别名)
- dwarfsextract (别名)
- mkdwarfs (别名)

## 依赖

- boost
- brotli
- flac
- fmt
- howard-hinnant-date
- libarchive
- lz4
- nlohmann-json
- openssl@3
- parallel-hashmap
- range-v3
- utf8cpp
- xxhash
- xz
- zstd

## 构建依赖

- cmake
- googletest
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.15.6
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/mhx/dwarfs
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

DwarFS is a high-compression read-only filesystem for Linux, FreeBSD, macOS, and Windows. Its README frames it as a mountable archive optimized for fast random reads and strong space savings on redundant data.

### 项目历史

Marcus Holland-Moritz writes in the README that he started working on DwarFS in 2013 because several hundred Perl installations were consuming about 30 GB, and existing compressed filesystems either did not compress well enough or were too slow and unstable for his use case.

The public GitHub repository was created in November 2020, and GitHub release metadata records release-0.1.0 the same month. By 2026, the project had grown into a multi-platform filesystem with mkdwarfs for image creation, dwarfs for mounting, dwarfsextract for extraction, and dwarfsck for inspection and checksums.

The README is unusually benchmark-heavy: it compares DwarFS with tar/gzip, 7-Zip, SquashFS, lrzip, zpaq, wimlib, Cromfs, EROFS, and fuse-archive across redundant Perl installations, CI artifacts, game audio assets, and other datasets.

### 采用历史

DwarFS adoption is strongest among users with highly redundant trees: many software builds, versioned runtimes, large asset collections, backups, and archives where mountable access matters. The README includes package-maintainer notes, release-download badges, a Homebrew installs badge, a Repology packaging badge, related projects, and notable users.

The input metadata lists Homebrew, Nix, and zypper packages. That package-manager footprint is important because DwarFS is a native filesystem/archive tool with FUSE and compression-library concerns; reproducible distribution builds make it easier to deploy than ad hoc source builds.

### 使用方式

The basic workflow is mkdwarfs -i /path/to/input/dir -o image.dwarfs, then dwarfs image.dwarfs /path/to/mountpoint to mount it. Users can extract with dwarfsextract and inspect or checksum images with dwarfsck.

DwarFS is read-only when mounted, so it is used more like a compressed, mountable artifact store than a writable filesystem. Its tuning knobs cover compression level, block size, categorization, worker counts, memory limits, duplicate segment search, and related compression-performance tradeoffs.

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

DwarFS is package-nerd significant because it is a modern alternative in a class usually dominated by SquashFS, tarballs, zip files, and container/image formats. It is especially interesting when the package is not just a compressor but a filesystem image format plus FUSE driver plus inspection/extraction tools.

It also illustrates why package managers matter for systems tools: users need compatible FUSE support, compression libraries, platform-specific builds, and command-line utilities installed together.

### 时间线

- 2013: Work on DwarFS begins, according to the README history section.
- 2020: The public GitHub repository is created and release-0.1.0 is published.
- 2026: GitHub release metadata records v0.15.3.

### Related projects

- The README compares DwarFS with SquashFS, Cromfs, EROFS, lrzip, zpaq, zpaqfranz, wimlib, fuse-archive, tar/gzip, and 7-Zip.
- Related runtime/package-image projects named by the README include PELF and uruntime, which mention DwarFS support.

### 来源

- <https://github.com/mhx/dwarfs#readme>
- <https://github.com/mhx/dwarfs/blob/main/doc/mkdwarfs.md>
- <https://api.github.com/repos/mhx/dwarfs>
- <https://api.github.com/repos/mhx/dwarfs/releases>


## 安全说明

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:** dwarfs
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - dwarfs: normalized package name match | nixpkgs package indexes: pkgs/by-name/dw/dwarfs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - dwarfs - 0.15.5-1.2: normalized package name match | openSUSE Tumbleweed package metadata: dwarfs from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Deduplicating compressed read-only file system | https://github.com/mhx/dwarfs
- zypper - dwarfs-bash-completion - 0.15.5-1.2: normalized package name match | openSUSE Tumbleweed package metadata: dwarfs-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for dwarfs | https://github.com/mhx/dwarfs
- zypper - dwarfs-devel - 0.15.5-1.2: normalized package name match | openSUSE Tumbleweed package metadata: dwarfs-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | DwarFS development files | https://github.com/mhx/dwarfs
- zypper - dwarfs-zsh-completion - 0.15.5-1.2: normalized package name match | openSUSE Tumbleweed package metadata: dwarfs-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ZSH Completion for dwarfs | https://github.com/mhx/dwarfs
- zypper - libdwarfs0_15_5 - 0.15.5-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libdwarfs0_15_5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | DwarFS dynamic library | https://github.com/mhx/dwarfs


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control 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.
- [Archive and compression packages](https://pkg.so/zh-hans/archive-compression-tools/) - Matched archive or compression metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [lz4](https://pkg.so/zh-hans/brew/lz4/) - Runtime dependency declared by Homebrew.
- [brotli](https://pkg.so/zh-hans/brew/brotli/) - Runtime dependency declared by Homebrew.
- [libarchive](https://pkg.so/zh-hans/brew/libarchive/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [ext4fuse](https://pkg.so/zh-hans/brew/ext4fuse/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, fuse, read-only.
- [rofs-filtered](https://pkg.so/zh-hans/brew/rofs-filtered/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, fuse, read-only.
- [libfuse](https://pkg.so/zh-hans/brew/libfuse/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, fuse, system.
- [erofs-utils](https://pkg.so/zh-hans/brew/erofs-utils/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, fuse, system.
- [ntfs-3g](https://pkg.so/zh-hans/brew/ntfs-3g/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, fuse, system.
- [save3ds_fuse](https://pkg.so/zh-hans/brew/save3ds-fuse/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, fuse, system.
- [simple-mtpfs](https://pkg.so/zh-hans/brew/simple-mtpfs/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, fuse, system.
- [ratarmount](https://pkg.so/zh-hans/brew/ratarmount/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, fuse, system.
- [squashfs](https://pkg.so/zh-hans/brew/squashfs/) - Local package facts share a topical domain. Shared terms: cli, compression, file, filesystem, linux.

## Combined YAML source

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