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

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

## 安装

```sh
sudo av install brew:bogofilter
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bogofilter
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bogofilter
```

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

### Linux

- apk (92%):

```sh
sudo apk add bogofilter
```

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

- Debian apt (92%):

```sh
sudo apt install bogofilter
```

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

- dnf (92%):

```sh
sudo dnf install bogofilter
```

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

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

- pacman (92%):

```sh
sudo pacman -S bogofilter-db
```

  证据: Arch Linux sync databases: bogofilter-db from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install bogofilter-db
```

  证据: openSUSE Tumbleweed package metadata: bogofilter-db from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:bogofilter
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bogofilter>
- **版本:** 1.2.5
- **来源摘要:** Mail filter via statistical analysis
- **主页:** <https://bogofilter.sourceforge.io>
- **仓库:** <https://gitlab.com/bogofilter/bogofilter>
- **上游文档:** <https://bogofilter.sourceforge.io/>
- **许可证:** GPL-2.0-or-later AND GPL-3.0-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/bogofilter/bogofilter-stable/bogofilter-1.2.5.tar.xz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- bf_compact (cli)
- bf_copy (cli)
- bf_tar (cli)
- bogofilter (cli)
- bogolexer (cli)
- bogotune (cli)
- bogoupgrade (cli)
- bogoutil (cli)
- bf_compact (别名)
- bf_copy (别名)
- bf_tar (别名)
- bogofilter (别名)
- bogolexer (别名)
- bogotune (别名)
- bogoupgrade (别名)
- bogoutil (别名)

## macOS 提供的库

- sqlite

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.2.5
- 本地数据: OK
- 上游仓库: https://bogofilter.sourceforge.io
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Bogofilter is a fast C-based Bayesian mail filter that classifies messages as spam or ham by statistical analysis of message headers and body text.

### 项目历史

Bogofilter appeared during the early-2000s wave of Bayesian spam filtering. Its official home page credits Eric S. Raymond with the initial version and says that, since 2002, David Relson, Matthias Andree, Greg Louis, and other open source volunteers brought it to maturity.

The project explicitly roots its statistical approach in Paul Graham's 2002 article on Bayesian spam filtering and Gary Robinson's refinements, including the Fisher inverse chi-square technique. The man page describes further practical engineering: MIME decoding, HTML parsing, token handling for hosts and IP addresses, and production-oriented database lookups.

The release history shows a long maintenance arc from the 1.2.x line into 1.3.0 release candidates. Recent entries include the 2019 Git repository conversion, maintenance after David Relson's death, C99 cleanup, SQLite3 driver work, and the 2025 decision to make SQLite3 the default database driver.

### 采用历史

Bogofilter was adopted by Unix mail users who wanted a local, trainable spam classifier that could plug into delivery agents and desktop mail clients. The official home page names KMail, Evolution, Claws Mail, maildrop, and procmail-style integration as usage surfaces.

Its package reach is broad for a mail-filtering utility: the input package facts list Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE packaging. That distribution spread reflects how Bayesian filtering became normal infrastructure for local mail setups before hosted mail spam filtering took over much of the mainstream market.

### 使用方式

Common usage is pipeline-oriented: feed a message to `bogofilter`, inspect its spam, ham, or unsure result, and train it with known spam and non-spam examples. Companion tools such as `bogoutil`, `bogotune`, `bogolexer`, and database copy/compact helpers support training, tuning, inspection, and migration.

The man page emphasizes script-friendly behavior, including terse modes, passthrough headers, bulk processing, explicit registration as spam or non-spam, and configuration options for wordlists and database directories.

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

Bogofilter is package-nerd significant because it captures a specific era of open source mail culture: local Unix mail delivery, procmail/maildrop recipes, Berkeley DB wordlists, and statistical filtering that users trained themselves.

It is also an example of a mature C utility where packaging choices matter. Database backend support, Unicode and MIME handling, config-file defaults, and migration tooling all directly affect whether an upgrade preserves a user's trained corpus.

### 时间线

- 2002: Initial Bogofilter work by Eric S. Raymond is followed by maturation by David Relson, Matthias Andree, Greg Louis, and volunteers.
- 2003: Paul Graham's later Bayesian filtering work and Gary Robinson's refinements are reflected in Bogofilter's documented algorithmic approach.
- 2013: Matthias Andree becomes maintainer after David Relson's long maintainership.
- 2019: The source repository is converted to Git; Bogofilter 1.2.5 is released.
- 2024: 1.3.0 beta work resumes with Unicode, lexer, and corruption fixes.
- 2025: 1.3.0 release candidates make SQLite3 the default database driver.

### Related projects

- Related projects include SpamAssassin, DSPAM, CRM114, procmail, maildrop, KMail, Evolution, and Claws Mail. Bogofilter occupies the small, fast, user-trained filter niche rather than the rule-heavy network-scored niche associated with SpamAssassin.

### 来源

- <https://bogofilter.sourceforge.io/>
- <https://bogofilter.sourceforge.io/NEWS>
- <https://bogofilter.sourceforge.io/faq.shtml>
- <https://bogofilter.sourceforge.io/man_page.shtml>
- input.source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /etc/bogofilter.cf, ~/.bogofilter.cf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bogofilter
- **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 - bogofilter - 1.2.5-1+b4: normalized package name match | Debian stable package indexes: bogofilter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast Bayesian spam filter (meta package) | http://bogofilter.sourceforge.net/
- Debian apt - bogofilter-bdb - 1.2.5-1+b4: normalized package name match | Debian stable package indexes: bogofilter-bdb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast Bayesian spam filter (Berkeley DB) | http://bogofilter.sourceforge.net/
- Debian apt - bogofilter-common - 1.2.5-1+b4: normalized package name match | Debian stable package indexes: bogofilter-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast Bayesian spam filter (common files) | http://bogofilter.sourceforge.net/
- Debian apt - bogofilter-sqlite - 1.2.5-1+b4: normalized package name match | Debian stable package indexes: bogofilter-sqlite from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast Bayesian spam filter (sqlite) | http://bogofilter.sourceforge.net/
- Debian apt - bogofilter-tokyocabinet - 1.2.5-1+b4: normalized package name match | Debian stable package indexes: bogofilter-tokyocabinet from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast Bayesian spam filter (tokyocabinet) | http://bogofilter.sourceforge.net/
- Nix - bogofilter: normalized package name match | nixpkgs package indexes: pkgs/by-name/bo/bogofilter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bogofilter - 1.2.5-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: bogofilter from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast Bayesian spam filter (meta package) | http://bogofilter.sourceforge.net/
- Ubuntu apt - bogofilter-bdb - 1.2.5-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: bogofilter-bdb from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast Bayesian spam filter (Berkeley DB) | http://bogofilter.sourceforge.net/
- Ubuntu apt - bogofilter-common - 1.2.5-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: bogofilter-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast Bayesian spam filter (common files) | http://bogofilter.sourceforge.net/
- Ubuntu apt - bogofilter-sqlite - 1.2.5-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: bogofilter-sqlite from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast Bayesian spam filter (sqlite) | http://bogofilter.sourceforge.net/
- apk - bogofilter - 1.2.5-r4: normalized package name match | Alpine Linux edge package indexes: bogofilter from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast Bayesian spam filter | https://bogofilter.sourceforge.io/
- apk - bogofilter-doc - 1.2.5-r4: normalized package name match | Alpine Linux edge package indexes: bogofilter-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast Bayesian spam filter (documentation) | https://bogofilter.sourceforge.io/
- dnf - bogofilter - 1.2.5-22.fc44: normalized package name match | Fedora Rawhide package metadata: bogofilter from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Fast anti-spam filtering by Bayesian statistical analysis | http://bogofilter.sourceforge.net/
- dnf - bogofilter-bogoupgrade - 1.2.5-22.fc44: normalized package name match | Fedora Rawhide package metadata: bogofilter-bogoupgrade from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Upgrades bogofilter database to current version | http://bogofilter.sourceforge.net/
- pacman - bogofilter-db - 1.2.5-12: normalized package name match | Arch Linux sync databases: bogofilter-db from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A fast Bayesian spam filtering tool - Berkeley DB v5.3 backend | https://bogofilter.sourceforge.io/
- pacman - bogofilter-kyotocabinet - 1.2.5-12: normalized package name match | Arch Linux sync databases: bogofilter-kyotocabinet from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A fast Bayesian spam filtering tool - Kyotocabinet DB backend | https://bogofilter.sourceforge.io/


## 相关链接

- [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.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Productivity CLI packages](https://www.automicvault.com/zh-hans/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [dbacl](https://www.automicvault.com/zh-hans/pkg/brew/dbacl/) - Shares av.db curated category or tags: cli, email, security, spam-filter.
- [parsedmarc](https://www.automicvault.com/zh-hans/pkg/brew/parsedmarc/) - Shares av.db curated category or tags: cli, email, security.
- [hashcash](https://www.automicvault.com/zh-hans/pkg/brew/hashcash/) - Shares av.db curated category or tags: cli, email, security.
- [pywhat](https://www.automicvault.com/zh-hans/pkg/brew/pywhat/) - Shares av.db curated category or tags: cli, email, security.
- [acme.sh](https://www.automicvault.com/zh-hans/pkg/brew/acme-sh/) - Shares av.db curated category or tags: cli, security.
- [aescrypt](https://www.automicvault.com/zh-hans/pkg/brew/aescrypt/) - Shares av.db curated category or tags: cli, security.
- [aespipe](https://www.automicvault.com/zh-hans/pkg/brew/aespipe/) - Shares av.db curated category or tags: cli, security.
- [afflib](https://www.automicvault.com/zh-hans/pkg/brew/afflib/) - Shares av.db curated category or tags: cli, security.
- [exploitdb](https://www.automicvault.com/zh-hans/pkg/brew/exploitdb/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security.
- [gnutls](https://www.automicvault.com/zh-hans/pkg/brew/gnutls/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security.

## Combined YAML source

View the package source record on GitHub. [combined/bogofilter.yml](https://github.com/automic-vault/db/blob/main/combined/bogofilter.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
