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

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

## 安装

```sh
sudo av install brew:notmuch
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install notmuch
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install notmuch
```

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

### Linux

- apk (92%):

```sh
sudo apk add notmuch
```

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

- Debian apt (92%):

```sh
sudo apt install notmuch
```

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

- dnf (92%):

```sh
sudo dnf install notmuch
```

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

  证据: nixpkgs package indexes: notmuch from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S notmuch
```

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

- zypper (92%):

```sh
sudo zypper install notmuch
```

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

## 软件包事实

- **软件包键:** brew:notmuch
- **软件包管理器:** Homebrew
- **版本:** 0.40
- **来源摘要:** Thread-based email index, search, and tagging
- **主页:** <https://notmuchmail.org/>
- **最后更新:** 2026-06-22T14:05:38-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- notmuch (别名)
- notmuch-emacs-mua (别名)
- notmuch-git (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Notmuch is a thread-based email index, search, and tagging system built around local mail stores and Xapian search. It deliberately does not receive or send mail; instead it provides the database, CLI, library, tags, and frontends that let other tools build a mail workflow.

The project began as an answer to Sup. The Notmuch homepage says it started as an effort to rewrite Sup's performance-critical pieces in C rather than Ruby, then grew into a separate project with a clean separation between search/indexing and user interface.

### 项目历史

Notmuch's first public source tarball in the official release directory is notmuch-0.1.tar.gz, dated 2010-04-05. The project had many 0.x releases through the 2010s and reached version 0.40 on 2026-01-31.

The architecture choice that mattered was treating mail as a local searchable database with arbitrary tags. Xapian handles the heavy search work, while Notmuch exposes command-line tools, a C library, language bindings, an Emacs client, Vim support, Mutt integration, and scripts such as notmuch-git.

### 采用历史

Notmuch has long-running Unix email adoption rather than mass-market adoption. Its homepage lists packages for Arch Linux, Debian, Fedora, FreeBSD, Gentoo, NetBSD, openSUSE, macOS Homebrew/MacPorts/pkgsrc, and Slackware, and the av.db package record also maps it across Homebrew, apk, Debian/Ubuntu, dnf, MacPorts, Nix, pacman, and zypper.

Homebrew's formula API reported 2,580 install-on-request events and 6,314 installs for notmuch in its 365-day analytics window. That is meaningful for a local-mail power-user tool, especially because many Notmuch users install from Linux distribution packages rather than Homebrew.

### 使用方式

Users point Notmuch at an existing Maildir-style mail store, run the initial setup/indexing flow, then use queries and tags to triage mail. Practical setups commonly pair it with offlineimap/isync or another mail synchronizer, an editor or terminal MUA, and tagging rules for inbox, lists, patches, and saved searches.

Package nerds use Notmuch as infrastructure: notmuch search for shell scripts, notmuch show for extracting messages or patches, Emacs notmuch for a full mail UI, notmuch-mutt for Mutt workflows, and language bindings or libnotmuch for custom tools.

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

Notmuch is one of the canonical examples of Unix-style personal information tooling: it does one hard local thing, makes it fast, keeps data out of hosted search, and lets frontends compete on workflow. Its long release history and packaging breadth make it much more significant than its mainstream visibility suggests.

### 时间线

- 2010-04-05: notmuch-0.1 tarball appears in the official release directory.
- 2011-12-26: Notmuch frontend wiki page created, later documenting shipped and external clients.
- 2025-03-15: Notmuch 0.39 released.
- 2026-01-31: Notmuch 0.40 released.

### Related projects

- Sup
- Xapian
- notmuch-emacs
- notmuch-mutt
- notmuch-vim
- NeoMutt
- aerc
- alot
- astroid

### 来源

- <https://formulae.brew.sh/api/formula/notmuch.json>
- <https://notmuchmail.org/>
- <https://notmuchmail.org/doc/latest/>
- <https://notmuchmail.org/frontends/>
- <https://notmuchmail.org/news/>
- <https://notmuchmail.org/releases/>


## 安全说明

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: $NOTMUCH_CONFIG, $XDG_CONFIG_HOME/notmuch/<profile>/config, $XDG_CONFIG_HOME/notmuch/default/config, ~/.notmuch-config.<profile>, ~/.notmuch-config
## 其他软件包管理器记录

- Debian apt - elpa-notmuch - 0.39-1: normalized package name match | Debian stable package indexes: elpa-notmuch from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | thread-based email index, search and tagging (emacs interface) | https://notmuchmail.org/
- Debian apt - libnotmuch-dev - 0.39-1: normalized package name match | Debian stable package indexes: libnotmuch-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | thread-based email index, search and tagging (development) | https://notmuchmail.org/
- Debian apt - libnotmuch5t64 - 0.39-1: normalized package name match | Debian stable package indexes: libnotmuch5t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | thread-based email index, search and tagging (runtime) | https://notmuchmail.org/
- Debian apt - notmuch - 0.39-1: normalized package name match | Debian stable package indexes: notmuch from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | thread-based email index, search and tagging | https://notmuchmail.org/
- Debian apt - notmuch-doc - 0.39-1: normalized package name match | Debian stable package indexes: notmuch-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | thread-based email index, search and tagging | https://notmuchmail.org/
- Debian apt - notmuch-git - 0.39-1: normalized package name match | Debian stable package indexes: notmuch-git from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | thread-based email index, search and tagging | https://notmuchmail.org/
- Debian apt - notmuch-mutt - 0.39-1: normalized package name match | Debian stable package indexes: notmuch-mutt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | thread-based email index, search and tagging (Mutt interface) | https://notmuchmail.org/
- Debian apt - notmuch-vim - 0.39-1: normalized package name match | Debian stable package indexes: notmuch-vim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | thread-based email index, search and tagging (vim interface) | https://notmuchmail.org/
- Debian apt - python3-notmuch2 - 0.39-1: normalized package name match | Debian stable package indexes: python3-notmuch2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python 3 interface to the notmuch mail search and index library | https://notmuchmail.org/
- Debian apt - ruby-notmuch - 0.39-1: normalized package name match | Debian stable package indexes: ruby-notmuch from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Ruby interface to the notmuch mail search and index library | https://notmuchmail.org/
- Nix - notmuch: normalized package name match | nixpkgs package indexes: notmuch from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - elpa-notmuch - 0.38.3-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: elpa-notmuch from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | thread-based email index, search and tagging (emacs interface) | https://notmuchmail.org/
- Ubuntu apt - libnotmuch-dev - 0.38.3-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnotmuch-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | thread-based email index, search and tagging (development) | https://notmuchmail.org/
- Ubuntu apt - libnotmuch5t64 - 0.38.3-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libnotmuch5t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | thread-based email index, search and tagging (runtime) | https://notmuchmail.org/
- Ubuntu apt - notmuch - 0.38.3-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: notmuch from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | thread-based email index, search and tagging | https://notmuchmail.org/
- Ubuntu apt - notmuch-doc - 0.38.3-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: notmuch-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | thread-based email index, search and tagging | https://notmuchmail.org/


## Combined YAML source

View the package source record on GitHub. [combined/notmuch.yml](https://github.com/mxcl/pkgdb/blob/main/combined/notmuch.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
