# 使用 Homebrew, dnf, MacPorts, Nix, apt, zypper 安装 afflib

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

## 安装

```sh
sudo av install brew:afflib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install afflib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install afflib
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install afflib
```

  证据: Fedora Rawhide package metadata: afflib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#afflib
```

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

- Debian apt (92%):

```sh
sudo apt install afflib-tools
```

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

- zypper (92%):

```sh
sudo zypper install afflib-devel
```

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

## 软件包事实

- **软件包键:** brew:afflib
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/afflib>
- **版本:** 3.7.22
- **来源摘要:** Advanced Forensic Format
- **主页:** <https://github.com/sshock/AFFLIBv3>
- **仓库:** <https://github.com/sshock/AFFLIBv3>
- **许可证:** BSD-4-Clause AND LicenseRef-Homebrew-public-domain
- **源码归档:** <https://github.com/sshock/AFFLIBv3/archive/refs/tags/v3.7.22.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- affcat (cli)
- affcompare (cli)
- affconvert (cli)
- affcopy (cli)
- affcrypto (cli)
- affdiskprint (cli)
- affinfo (cli)
- affix (cli)
- affrecover (cli)
- affsegment (cli)
- affsign (cli)
- affstats (cli)
- affuse (cli)
- affverify (cli)
- affxml (cli)
- affcat (别名)
- affcompare (别名)
- affconvert (别名)
- affcopy (别名)
- affcrypto (别名)
- affdiskprint (别名)
- affinfo (别名)
- affix (别名)
- affrecover (别名)
- affsegment (别名)
- affsign (别名)
- affstats (别名)
- affuse (别名)
- affverify (别名)
- affxml (别名)

## 依赖

- openssl@3

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf
- python@3.14

## macOS 提供的库

- curl
- expat

## 安装行为

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

## 版本和新鲜度

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

AFFLIBv3 is the library and tool suite for the Advanced Forensic Format, an open disk-image format for storing computer forensic data and metadata. The official README describes AFF as supporting forensic data plus metadata, digital signatures for chain of custody and integrity, encrypted disk-image storage, and use in both open-source and proprietary tools.

### 项目历史

AFFLIB's official changelog begins with Release 1.0 on August 13, 2005, described as the initial release with the library description, README, basic library functionality, and four utilities. The README credits Basis Technology and Simson L. Garfinkel for the original 2005-2013 period and Phillip Hellewell for 2014-2025 maintenance.

The 2005 changelog shows rapid early development: large-file support, AMD64 fixes, write support, segment directories, aimage improvements, and archive conversion fixes. Later entries document ongoing portability, OS X updates, license cleanup, and a move toward GitHub preparation in 2012.

The README states AFFLIBv3 implements version 3 of the AFF format and is in maintenance mode while AFFv4 work continues. It contrasts AFFv3's purpose-built container with AFFv4's ZIP64 base and notes licensing differences between the two generations.

### 采用历史

AFFLIB became part of forensic and disk-image tooling because it provided both a library and many command-line utilities: affcat, affcompare, affconvert, affcopy, affcrypto, affdiskprint, affinfo, affrecover, affsign, affstats, affuse, affverify, affxml, and others listed by the package facts and manpages.

The official README includes a section on using AFFLIB with The Sleuth Kit, noting that TSK officially supports a subset of the image formats AFFLIB supports and that users can specify image type afflib for the other formats. That is a concrete adoption bridge into a well-known forensic analysis toolkit.

### 使用方式

AFFLIB tools convert between raw, splitraw, AFF, AFD, and AFM disk-image forms; compare disk images; copy with verification and chain-of-custody segment generation; repair files; print information and statistics; generate XML metadata; and produce diskprints.

The affinfo manpage describes AFF as an open and extensible file format to store disk images and metadata, useful in computer forensics investigations. It also documents hash validation options for MD5, SHA1, and page-level verification, showing the tool suite's integrity-checking focus.

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

AFFLIB is significant because it packages a whole forensic image ecosystem into Unix command-line tools plus a library. It is not merely a decoder: it covers conversion, verification, metadata extraction, encryption, signing, FUSE mounting, and XML export.

For package maintainers, AFFLIB is also an example of legacy-but-still-useful domain software: older file-format support, forensic workflow compatibility, C/C++ portability scars, and maintenance-mode upstream reality all matter more than shiny new features.

### 时间线

- 2005-08-13: AFFLIB Release 1.0 initial release.
- 2005-11-18: Release 1.2.5 introduced an in-memory segment directory for random-access performance.
- 2012-03-04: Version 3.6.16 changelog entry changed license from BSD with advertising to BSD without advertising.
- 2012-03-31: Version 3.7.0 changelog entry prepared the project for a move to GitHub.
- 2014-2025: Official README credits Phillip Hellewell maintenance period.
- Current: README says AFFLIBv3 is in maintenance mode while AFFv4 continues.

### Related projects

- Related projects include AFFv4, The Sleuth Kit, raw/dd disk images, splitraw, AFD, AFM, FUSE mounting, forensic XML metadata tooling, and chain-of-custody workflows.

### 来源

- <https://github.com/sshock/AFFLIBv3/blob/master/ChangeLog>
- <https://github.com/sshock/AFFLIBv3/blob/master/README>
- <https://github.com/sshock/AFFLIBv3/blob/master/man/affinfo.1>
- source_facts.repo


## 安全说明

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:** afflib
- **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 - afflib-tools - 3.7.21-1: normalized package name match | Debian stable package indexes: afflib-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Advanced Forensics Format Library (utilities) | https://github.com/sshock/AFFLIBv3
- Debian apt - libafflib-dev - 3.7.21-1: normalized package name match | Debian stable package indexes: libafflib-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Advanced Forensics Format Library (development files) | https://github.com/sshock/AFFLIBv3
- Debian apt - libafflib0t64 - 3.7.21-1: normalized package name match | Debian stable package indexes: libafflib0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Advanced Forensics Format Library | https://github.com/sshock/AFFLIBv3
- Nix - afflib: normalized package name match | nixpkgs package indexes: pkgs/by-name/af/afflib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - afflib-tools - 3.7.20-1.1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: afflib-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Advanced Forensics Format Library (utilities) | https://github.com/sshock/AFFLIBv3
- Ubuntu apt - libafflib-dev - 3.7.20-1.1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: libafflib-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Advanced Forensics Format Library (development files) | https://github.com/sshock/AFFLIBv3
- Ubuntu apt - libafflib0t64 - 3.7.20-1.1ubuntu5: normalized package name match | Ubuntu 24.04 LTS package indexes: libafflib0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Advanced Forensics Format Library | https://github.com/sshock/AFFLIBv3
- dnf - afflib - 3.7.22-8.fc45: normalized package name match | Fedora Rawhide package metadata: afflib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Library to support the Advanced Forensic Format | https://github.com/sshock/AFFLIBv3
- dnf - afflib-devel - 3.7.22-8.fc45: normalized package name match | Fedora Rawhide package metadata: afflib-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for afflib | https://github.com/sshock/AFFLIBv3
- dnf - afftools - 3.7.22-8.fc45: normalized package name match | Fedora Rawhide package metadata: afftools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Utilities for afflib | https://github.com/sshock/AFFLIBv3
- dnf - python3-pyaff - 3.7.22-8.fc45: normalized package name match | Fedora Rawhide package metadata: python3-pyaff from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Python3 binding for the AFFLIB | https://github.com/sshock/AFFLIBv3
- zypper - afflib-devel - 3.7.22-1.5: normalized package name match | openSUSE Tumbleweed package metadata: afflib-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library for working with the Advanced Forensics Format - Build support | https://github.com/sshock/AFFLIBv3
- zypper - afflib-tools - 3.7.22-1.5: normalized package name match | openSUSE Tumbleweed package metadata: afflib-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tools for working with the Advanced Forensics Format | https://github.com/sshock/AFFLIBv3
- zypper - libafflib0 - 3.7.22-1.5: normalized package name match | openSUSE Tumbleweed package metadata: libafflib0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library for working with the Advanced Forensics Format-Runtime support | https://github.com/sshock/AFFLIBv3
- MacPorts - afflib: normalized package name match | MacPorts ports tree: security/afflib/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.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Build dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [sleuthkit](https://pkg.so/zh-hans/brew/sleuthkit/) - Popular package that depends on this formula.
- [xmount](https://pkg.so/zh-hans/brew/xmount/) - Popular package that depends on this formula.
- [evtx](https://pkg.so/zh-hans/brew/evtx/) - Shares pkgdb curated category or tags: cli, forensics, security.
- [ssdeep](https://pkg.so/zh-hans/brew/ssdeep/) - Shares pkgdb curated category or tags: cli, forensics, security.
- [chainsaw](https://pkg.so/zh-hans/brew/chainsaw/) - Shares pkgdb curated category or tags: cli, forensics, security.
- [dcfldd](https://pkg.so/zh-hans/brew/dcfldd/) - Shares pkgdb curated category or tags: cli, forensics, security.
- [dc3dd](https://pkg.so/zh-hans/brew/dc3dd/) - Shares pkgdb curated category or tags: cli, forensics, security.
- [mac-robber](https://pkg.so/zh-hans/brew/mac-robber/) - Shares pkgdb curated category or tags: cli, forensics, security.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, library, security.
- [p11-kit](https://pkg.so/zh-hans/brew/p11-kit/) - Shares pkgdb curated category or tags: cli, library, security.
- [libewf](https://pkg.so/zh-hans/brew/libewf/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, disk, forensics, format, openssl.

## Combined YAML source

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