# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 3.7.22
- **来源摘要:** Advanced Forensic Format
- **主页:** <https://github.com/sshock/AFFLIBv3>
- **仓库:** <https://github.com/sshock/AFFLIBv3>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


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