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

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

## 安装

```sh
sudo av install brew:f3
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install f3
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install f3
```

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

### Linux

- apk (92%):

```sh
sudo apk add f3
```

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

- Debian apt (92%):

```sh
sudo apt install f3
```

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

- dnf (92%):

```sh
sudo dnf install f3
```

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

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

- zypper (92%):

```sh
sudo zypper install f3
```

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

## 软件包事实

- **软件包键:** brew:f3
- **软件包管理器:** Homebrew
- **版本:** 10.0
- **来源摘要:** Test various flash cards
- **主页:** <https://fight-flash-fraud.readthedocs.io/en/latest/>
- **仓库:** <https://github.com/AltraMayor/f3>
- **最后更新:** 2026-06-22T14:03:18-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- f3read (别名)
- f3write (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

F3, short for Fight Flash Fraud or Fight Fake Flash, is a GPLv3 flash-storage testing toolkit that writes and verifies pseudorandom data to detect counterfeit USB drives and memory cards.

### 项目历史

F3 began in 2010 after Michel Machado bought a 32 GB microSDHC card for an Android phone and found it failed when filled. The official history says the project was inspired by counterfeit-flash reports and by H2testw, whose algorithm was documented but whose implementation was Windows-only and not open source.

The original F3 implementation split the H2testw-style test into `f3write` and `f3read`: one fills available space with test files, and the other validates the data. The toolkit later grew Linux-only direct-device tools: `f3probe` to identify fake drives and real sizes quickly, `f3fix` to create a usable partition matching real capacity, and `f3brew` to help developers infer how fake drives behave.

The changelog records a long maintenance line from version 1.0 in August 2010 through version 10.0 in April 2026, with platform support, extra tools, portability work, and newer probing algorithms added over time.

### 采用历史

F3 became the Unix-like answer to H2testw for users who needed to test flash media outside Windows or wanted auditable source. Its docs explicitly cover Linux, macOS, Windows/Cygwin, FreeBSD, Docker-based workflows, Homebrew, and MacPorts installation paths.

Package-manager adoption follows the practical need: F3 is the small CLI people install before trusting cheap SD cards, USB sticks, camera cards, or marketplace flash media. The input package facts list it across Homebrew, Debian, Ubuntu, Fedora, Alpine, MacPorts, Nix, and openSUSE.

### 使用方式

The conservative workflow is `f3write` on a mounted filesystem followed by `f3read` on the same path. This fills free space with test files and verifies whether the drive returns the same data, while also estimating write and read speeds.

`f3probe` is the faster destructive path for large media because it works directly on an unmounted block device and writes only what is necessary to infer real capacity. `f3fix` then uses probe output to create a partition that fits the usable portion of a fake device.

The docs repeatedly warn that testing suspect media can destroy data, especially because fake devices may overwrite earlier sectors while pretending to have more capacity.

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

F3 is a classic package-nerd utility because it turns a hardware scam into a reproducible command-line test. It is small C code, works in scripts, has simple executables, and answers a question package managers often face indirectly: can this storage device actually be trusted?

It also matters culturally as an open-source, cross-platform counterweight to H2testw. The file format compatibility and staged tool evolution show a pragmatic Unix approach: first reproduce the trusted test, then add direct-device probes and repair helpers.

### 时间线

- 2010: Project started after a fake 32 GB microSDHC card exposed the need for an open-source H2testw-like tool.
- 2010: Version 1.0 initial release.
- 2011: Version 2.0 adds macOS support.
- 2014: Version 3.0 adds Windows/Cygwin support and adopts H2testw's file format.
- 2014: Version 4.0 adds FreeBSD support.
- 2014: Version 5.0 adds experimental `f3probe` and `f3fix`.
- 2015: Version 6.0 adds experimental `f3brew`.
- 2017: Version 7.0 marks `f3probe`, `f3fix`, and `f3brew` stable for Linux.
- 2025: Version 9.0 adds portability improvements and GitHub Actions testing.
- 2026: Version 10.0 adds a new `f3probe` probing algorithm and moves the codebase to C17.

### Related projects

- H2testw is the Windows tool and file-format reference that inspired F3.
- FakeFlashTest and related flash-test tools occupy the same counterfeit-storage detection niche.
- Homebrew and MacPorts are documented install paths for macOS users.

### 来源

- <https://fight-flash-fraud.readthedocs.io/en/latest/>
- <https://fight-flash-fraud.readthedocs.io/en/latest/history.html>
- <https://fight-flash-fraud.readthedocs.io/en/latest/usage.html>
- <https://github.com/AltraMayor/f3>
- <https://github.com/AltraMayor/f3/blob/master/changelog>
- <https://api.github.com/repos/AltraMayor/f3>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - f3 - 9.0-1: normalized package name match | Debian stable package indexes: f3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | test real flash memory capacity | https://fight-flash-fraud.readthedocs.io/en/stable/
- Nix - f3: normalized package name match | nixpkgs package indexes: pkgs/by-name/f3/f3/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - f3 - 8.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: f3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | test real flash memory capacity | https://fight-flash-fraud.readthedocs.io/en/stable/
- apk - f3 - 10.0-r0: normalized package name match | Alpine Linux edge package indexes: f3 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | F3 - Fight Flash Fraud | http://oss.digirati.com.br/f3/
- apk - f3-doc - 10.0-r0: normalized package name match | Alpine Linux edge package indexes: f3-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | F3 - Fight Flash Fraud (documentation) | http://oss.digirati.com.br/f3/
- apk - f3-extra - 10.0-r0: normalized package name match | Alpine Linux edge package indexes: f3-extra from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extra tools for f3 | http://oss.digirati.com.br/f3/
- dnf - f3 - 9.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: f3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Utility to test for fake flash drives and cards | https://oss.digirati.com.br/f3/
- zypper - f3 - 10.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: f3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fight Flash Fraud / Fight Fake Flash | http://oss.digirati.com.br/f3/
- MacPorts - f3: normalized package name match | MacPorts ports tree: sysutils/f3/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/f3.yml](https://github.com/mxcl/pkgdb/blob/main/combined/f3.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
