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

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

## 安装

```sh
sudo av install brew:genext2fs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install genext2fs
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install genext2fs
```

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

### Linux

- apk (92%):

```sh
sudo apk add genext2fs
```

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

- Debian apt (92%):

```sh
sudo apt install genext2fs
```

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

- dnf (92%):

```sh
sudo dnf install genext2fs
```

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

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

## 软件包事实

- **软件包键:** brew:genext2fs
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/genext2fs>
- **版本:** 1.6.2
- **来源摘要:** Generates an ext2 filesystem as a normal (non-root) user
- **主页:** <https://genext2fs.sourceforge.net/>
- **仓库:** <https://github.com/bestouff/genext2fs>
- **上游文档:** <https://genext2fs.sourceforge.net/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/bestouff/genext2fs/archive/refs/tags/v1.6.2.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- genext2fs (cli)
- genext2fs (别名)

## 构建依赖

- autoconf
- automake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.6.2
- 本地数据: OK
- 上游仓库: https://github.com/bestouff/genext2fs
- 检测到的最新版本: v1.6.2 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

genext2fs is a small filesystem-image builder for creating ext2 filesystems without mounting an image and without running as root. Its niche is especially visible in embedded and image-building workflows, where reproducible creation of root filesystems matters more than interactive disk administration.

### 项目历史

The project homepage describes the original design goal plainly: generate an ext2 filesystem as a normal user, including ownership, permissions, and device nodes, without mounting the image. The GitHub repository later became the source and issue-tracking home for bug fixes and feature work.

### 采用历史

The SourceForge homepage notes that many Linux users obtain genext2fs through distribution packages. Homebrew, Debian-family, Alpine, Fedora-family, MacPorts, and Nix packaging in the input record reflect its long-running role as a build-time utility rather than an end-user application.

### 使用方式

Practitioners use genext2fs to assemble ext2 images from directories, tarballs, and device-table specifications. The README documents image sizing, inode control, device node creation, stdin pipelines, fake timestamps, SOURCE_DATE_EPOCH support, and examples for flash or floppy-style images.

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

genext2fs matters because it avoids privileged mounts in build systems. That makes it attractive for package builders, embedded distributions, and CI jobs that need filesystem artifacts but should not require root.

### 时间线

- 2017: the GitHub repository used by the project homepage was created.
- 2026: Homebrew packaged the 1.6.x line while the upstream README documented reproducible-build timestamp support.

### Related projects

- Related tools and concepts include ext2, device tables, reproducible-build SOURCE_DATE_EPOCH handling, and embedded Linux root filesystem image generation.

### 来源

- <https://formulae.brew.sh/formula/genext2fs>
- <https://genext2fs.sourceforge.net/>
- <https://github.com/bestouff/genext2fs>
- <https://raw.githubusercontent.com/bestouff/genext2fs/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** genext2fs
- **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

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

- Debian apt - genext2fs - 1.5.0-3+b1: normalized package name match | Debian stable package indexes: genext2fs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ext2 filesystem generator for embedded systems | https://github.com/bestouff/genext2fs
- Nix - genext2fs: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/genext2fs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - genext2fs - 1.5.0-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: genext2fs from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ext2 filesystem generator for embedded systems | https://github.com/bestouff/genext2fs
- apk - genext2fs - 1.6.2-r0: normalized package name match | Alpine Linux edge package indexes: genext2fs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Generate ext2 filesystems as a normal user | https://genext2fs.sourceforge.net/
- apk - genext2fs-doc - 1.6.2-r0: normalized package name match | Alpine Linux edge package indexes: genext2fs-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Generate ext2 filesystems as a normal user (documentation) | https://genext2fs.sourceforge.net/
- dnf - genext2fs - 1.6.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: genext2fs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | ext2 filesystem generator | https://github.com/bestouff/genext2fs/
- MacPorts - genext2fs: normalized package name match | MacPorts ports tree: sysutils/genext2fs/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [e2fsprogs](https://www.automicvault.com/zh-hans/pkg/brew/e2fsprogs/) - Shares av.db curated category or tags: cli, ext2, filesystems, system.
- [e2tools](https://www.automicvault.com/zh-hans/pkg/brew/e2tools/) - Shares av.db curated category or tags: cli, ext2, filesystems, system.
- [btfs](https://www.automicvault.com/zh-hans/pkg/brew/btfs/) - Shares av.db curated category or tags: cli, filesystems, system.
- [btrfs-progs](https://www.automicvault.com/zh-hans/pkg/brew/btrfs-progs/) - Shares av.db curated category or tags: cli, filesystems, system.
- [dosfstools](https://www.automicvault.com/zh-hans/pkg/brew/dosfstools/) - Shares av.db curated category or tags: cli, filesystems, system.
- [dwarfs](https://www.automicvault.com/zh-hans/pkg/brew/dwarfs/) - Shares av.db curated category or tags: cli, filesystems, system.
- [dysk](https://www.automicvault.com/zh-hans/pkg/brew/dysk/) - Shares av.db curated category or tags: cli, filesystems, system.
- [erdtree](https://www.automicvault.com/zh-hans/pkg/brew/erdtree/) - Shares av.db curated category or tags: cli, filesystems, system.
- [ratarmount](https://www.automicvault.com/zh-hans/pkg/brew/ratarmount/) - Local package facts share a topical domain. Shared terms: as, cli, filesystem, filesystems, system.

## Combined YAML source

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