# 使用 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
- **版本:** 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>
- **最后更新:** 2026-07-26T17:46:02Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
