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

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

## 安装

```sh
sudo av install brew:nmh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nmh
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add nmh
```

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

- Debian apt (92%):

```sh
sudo apt install nmh
```

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

- dnf (92%):

```sh
sudo dnf install nmh
```

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

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

- zypper (92%):

```sh
sudo zypper install nmh
```

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

## 软件包事实

- **软件包键:** brew:nmh
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nmh>
- **版本:** 1.8
- **来源摘要:** New version of the MH mail handler
- **主页:** <https://www.nongnu.org/nmh/>
- **上游文档:** <https://www.nongnu.org/nmh/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://download.savannah.gnu.org/releases/nmh/nmh-1.8.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- anno (cli)
- burst (cli)
- comp (cli)
- flist (cli)
- flists (cli)
- fmttest (cli)
- fnext (cli)
- folder (cli)
- folders (cli)
- forw (cli)
- fprev (cli)
- inc (cli)
- install-mh (cli)
- mhbuild (cli)
- mhfixmsg (cli)
- mhical (cli)
- mhlist (cli)
- mhlogin (cli)
- mhmail (cli)
- mhn (cli)
- mhparam (cli)
- mhpath (cli)
- mhshow (cli)
- mhstore (cli)
- msgchk (cli)
- new (cli)
- next (cli)
- packf (cli)
- pick (cli)
- prev (cli)
- prompter (cli)
- refile (cli)
- repl (cli)
- rmf (cli)
- rmm (cli)
- scan (cli)
- send (cli)
- sendfiles (cli)
- show (cli)
- sortm (cli)
- unseen (cli)
- whatnow (cli)
- whom (cli)
- anno (别名)
- burst (别名)
- comp (别名)
- flist (别名)
- flists (别名)
- fmttest (别名)
- fnext (别名)
- folder (别名)
- folders (别名)
- forw (别名)
- fprev (别名)
- inc (别名)
- install-mh (别名)
- mhbuild (别名)
- mhfixmsg (别名)
- mhical (别名)
- mhlist (别名)
- mhlogin (别名)
- mhmail (别名)
- mhn (别名)
- mhparam (别名)
- mhpath (别名)
- mhshow (别名)
- mhstore (别名)
- msgchk (别名)
- new (别名)
- next (别名)
- packf (别名)
- pick (别名)
- prev (别名)
- prompter (别名)
- refile (别名)
- repl (别名)
- rmf (别名)
- rmm (别名)
- scan (别名)
- send (别名)
- sendfiles (别名)
- show (别名)
- sortm (别名)
- unseen (别名)
- whatnow (别名)
- whom (别名)

## 依赖

- openssl@3
- w3m

## macOS 提供的库

- cyrus-sasl
- ncurses

## 安装行为

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

## 版本和新鲜度

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

nmh is the maintained 'new MH' implementation of the MH message handling system: a Unix mail environment made from many small commands rather than one monolithic mail client.

### 项目历史

MH predates nmh by decades. RAND's 1979 user's manual describes MH as a UNIX shell-driven mail system where each mail activity is a separate command and each message is stored as a separate file in a folder directory. nmh continued that model as a mostly compatible replacement for MH, based on MH 6.8.3 from RAND and the University of California.

The nmh FAQ describes the fork as a response to the languishing state of MH: Richard Coleman created nmh from MH 6.8.3, added GNU autoconf, and fixed bugs and inconsistencies. Later maintainers moved the project infrastructure to Savannah, which remains the official source location.

### 采用历史

nmh is niche by modern mail-client standards but important to Unix mail traditionalists because it preserves the MH composition model: commands such as inc, scan, show, repl, forw, refile, pick, sortm, and rmm compose naturally with shell scripts. The project page also points to front ends such as exmh and mh-e, showing that nmh is both an end-user toolkit and a substrate for other mail interfaces.

Package-manager coverage across Homebrew, Debian/Ubuntu, Fedora, Alpine, Nix, and openSUSE reflects long-tail adoption rather than hype adoption. Its value is continuity: scripts, habits, and mail stores built around MH semantics can keep working on contemporary Unix-like systems.

### 使用方式

Package nerds use nmh when they want mail to be shell-native. Typical workflows initialize a profile, incorporate messages into MH folders, scan folders, show or reply to individual messages, refile mail by shell command, and use pick/sortm/mhpath/mhparam in scripts. The practical appeal is that the mailbox is regular files plus small commands, so grep, find, cron, editors, and shell aliases remain first-class tools.

The tradeoff is intentional: nmh is not a turnkey GUI mail app. It rewards users who want explicit control over message storage, composition drafts, aliases, profile settings, and MIME handling.

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

nmh matters because it is a living bridge from early Unix mail design to present package ecosystems. It is a good example of a package whose significance is architectural and historical rather than measured by broad consumer adoption.

### 时间线

- {'event': "RAND published The MH Message Handling System: User's Manual, documenting the shell-command and per-message-file model that nmh inherits.", 'year': '1979'}
- {'event': 'Richard Coleman created nmh from MH 6.8.3 after MH development slowed, adding GNU autoconf and cleanup work according to the MH/nmh FAQ.', 'year': '1990s'}
- {'event': 'nmh development infrastructure moved to Savannah and continued through the nmh-workers community.', 'year': '2000s'}

### Related projects

- RAND MH
- exmh
- mh-e
- mmh

### 来源

- <https://raw.githubusercontent.com/mcr/nmh/master/docs/FAQ>
- <https://www.mankier.com/package/nmh>
- <https://www.nongnu.org/nmh/>
- <https://www.nongnu.org/nmh/old.html>
- <https://www.rand.org/pubs/reports/R2367.html>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


## 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: ~/.mh_profile
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nmh
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Conflicts With:** ali, cargo-dist, pick, repl
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - nmh - 1.8-3: normalized package name match | Debian stable package indexes: nmh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | set of electronic mail handling programs
- Nix - nmh: normalized package name match | nixpkgs package indexes: pkgs/by-name/nm/nmh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - nmh - 1.8-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: nmh from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | set of electronic mail handling programs
- apk - nmh - 1.8-r3: normalized package name match | Alpine Linux edge package indexes: nmh from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Powerful electronic mail handling system | https://www.nongnu.org/nmh/
- apk - nmh-doc - 1.8-r3: normalized package name match | Alpine Linux edge package indexes: nmh-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Powerful electronic mail handling system (documentation) | https://www.nongnu.org/nmh/
- dnf - nmh - 1.8-12.fc45: normalized package name match | Fedora Rawhide package metadata: nmh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A capable MIME-email-handling system with a command-line interface | https://savannah.nongnu.org/projects/nmh
- zypper - nmh - 1.8-1.7: normalized package name match | openSUSE Tumbleweed package metadata: nmh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Unix Mail Handler | https://www.nongnu.org/nmh/


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://pkg.so/zh-hans/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [w3m](https://pkg.so/zh-hans/brew/w3m/) - Runtime dependency declared by Homebrew.
- [neomutt](https://pkg.so/zh-hans/brew/neomutt/) - Shares pkgdb curated category or tags: cli, email, productivity.
- [mu](https://pkg.so/zh-hans/brew/mu/) - Shares pkgdb curated category or tags: cli, email, productivity.
- [aerc](https://pkg.so/zh-hans/brew/aerc/) - Shares pkgdb curated category or tags: cli, email, productivity.
- [offlineimap](https://pkg.so/zh-hans/brew/offlineimap/) - Shares pkgdb curated category or tags: cli, email, productivity.
- [claws-mail](https://pkg.so/zh-hans/brew/claws-mail/) - Shares pkgdb curated category or tags: cli, email, productivity.
- [alpine](https://pkg.so/zh-hans/brew/alpine/) - Shares pkgdb curated category or tags: cli, email, productivity.
- [alot](https://pkg.so/zh-hans/brew/alot/) - Shares pkgdb curated category or tags: cli, email, productivity.
- [pop](https://pkg.so/zh-hans/brew/pop/) - Shares pkgdb curated category or tags: cli, email, productivity.
- [meli](https://pkg.so/zh-hans/brew/meli/) - Local package facts share a topical domain. Shared terms: cli, email, mail, openssl, openssl-3.

## Combined YAML source

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


## 来源

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