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

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

## 安装

```sh
sudo av install brew:hunspell
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hunspell
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hunspell
```

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

### Linux

- apk (92%):

```sh
sudo apk add hunspell
```

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

- Debian apt (92%):

```sh
sudo apt install hunspell
```

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

- dnf (92%):

```sh
sudo dnf install hunspell
```

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

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

- pacman (92%):

```sh
sudo pacman -S hunspell
```

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

- zypper (92%):

```sh
sudo zypper install hunspell
```

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

### Windows

- winget (92%):

```sh
winget install --id FSFhu.Hunspell -e
```

  证据: Windows Package Manager source index: FSFhu.Hunspell from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:hunspell
- **软件包管理器:** Homebrew
- **版本:** 1.7.3
- **来源摘要:** Spell checker and morphological analyzer
- **主页:** <https://hunspell.github.io>
- **仓库:** <https://github.com/hunspell/hunspell>
- **最后更新:** 2026-05-08T19:07:41Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- affixcompress (别名)
- analyze (别名)
- chmorph (别名)
- hunspell (别名)
- hunzip (别名)
- hzip (别名)
- ispellaff2myspell (别名)
- makealias (别名)
- munch (别名)
- unmunch (别名)
- wordforms (别名)
- wordlist2hunspell (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Hunspell is a spell checker, morphological analyzer, library, and command-line tool. Its official materials describe support for Unicode, compounding, complex morphology, stemming, morphological generation, custom dictionaries, an Ispell-like terminal interface, pipe mode, and C/C++ APIs.

### 项目历史

Hunspell's code base descends from OpenOffice.org's MySpell library by Kevin Hendricks, which the Hunspell README describes as a C++ reimplementation of Geoff Kuenning's International Ispell spell checking and affixation work. László Németh developed Hunspell's main library and command-line features, extending the MySpell lineage with richer morphology, compounding, affix handling, suggestion logic, and language-specific behavior.

The official site records project sponsorship history, including Budapest Technical University Media Research Centre support in 2003-2005 and FSF.hu Foundation sponsorship, and the AUTHORS file names László Németh as author, Kevin Hendricks as MySpell author, and Caolán McNamara as maintainer and distinguished contributor.

### 采用历史

Hunspell became infrastructure rather than just a standalone command. The official site says it is used by LibreOffice, OpenOffice.org, Mozilla Firefox and Thunderbird, Google Chrome, macOS, InDesign, memoQ, Opera, SDL Trados, Linux distributions, and other tools. The batch metadata also shows broad package-manager coverage across Homebrew, Debian, Ubuntu, Fedora, Arch, openSUSE, MacPorts, Nix, Alpine, winget, and related ecosystems.

### 使用方式

Command-line users run `hunspell` interactively, in pipe mode, or against files with dictionaries made of `.aff` and `.dic` files. Developers use libhunspell through C/C++ APIs and language bindings, while dictionary maintainers use companion tools such as affixcompress, unmunch, wordforms, wordlist2hunspell, analyze, and related utilities.

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

For package nerds, Hunspell is a deep dependency hiding in plain sight: a spell-checking engine packaged as both CLI and library, with dictionaries often shipped separately and consumed by office suites, browsers, editors, NLP tools, and operating systems. It is also a reminder that language support packages often matter as much as the executable package itself.

### 时间线

- 2003-2005: Official site records BME MOKK sponsorship of Hunspell development.
- 2015: hunspell/hunspell GitHub repository created.
- 2016: v1.4.0 release published in GitHub Releases metadata.
- 2018: v1.7.0 release published with suggestion, SPELLML, morphology, and compounding improvements.
- 2026: v1.7.3 release notes record security, fuzzing, Unicode, build, and correctness fixes.

### Related projects

- Related projects include MySpell, International Ispell, OpenOffice.org, LibreOffice, Firefox, Thunderbird, Chrome, macOS spelling services, Enchant, Weblate translations, and Hunspell/MySpell dictionary repositories.

### 来源

- Official Hunspell site, repository README, AUTHORS, NEWS, GitHub repository and release metadata, and Homebrew package metadata supplied in the batch input.


## 安全说明

没有找到 hunspell 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Debian apt - hunspell - 1.7.2+really1.7.2-10+b4: normalized package name match | Debian stable package indexes: hunspell from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | spell checker and morphological analyzer (program) | https://hunspell.github.io/
- Debian apt - hunspell-tools - 1.7.2+really1.7.2-10+b4: normalized package name match | Debian stable package indexes: hunspell-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tools for hunspell | https://hunspell.github.io/
- Debian apt - libhunspell-1.7-0 - 1.7.2+really1.7.2-10+b4: normalized package name match | Debian stable package indexes: libhunspell-1.7-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | spell checker and morphological analyzer (shared library) | https://hunspell.github.io/
- Debian apt - libhunspell-dev - 1.7.2+really1.7.2-10+b4: normalized package name match | Debian stable package indexes: libhunspell-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | spell checker and morphological analyzer (development) | https://hunspell.github.io/
- Debian apt - libhunspell-private-dev - 1.7.2+really1.7.2-10: normalized package name match | Debian stable package indexes: libhunspell-private-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | spell checker and morphological analyzer (private headers) | https://hunspell.github.io/
- Nix - hunspell: normalized package name match | nixpkgs package indexes: pkgs/by-name/hu/hunspell/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - hunspell - 1.7.2+really1.7.2-10build3: normalized package name match | Ubuntu 24.04 LTS package indexes: hunspell from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | spell checker and morphological analyzer (program) | https://hunspell.github.io/
- Ubuntu apt - hunspell-tools - 1.7.2+really1.7.2-10build3: normalized package name match | Ubuntu 24.04 LTS package indexes: hunspell-tools from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | tools for hunspell | https://hunspell.github.io/
- Ubuntu apt - libhunspell-1.7-0 - 1.7.2+really1.7.2-10build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libhunspell-1.7-0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | spell checker and morphological analyzer (shared library) | https://hunspell.github.io/
- Ubuntu apt - libhunspell-dev - 1.7.2+really1.7.2-10build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libhunspell-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | spell checker and morphological analyzer (development) | https://hunspell.github.io/
- Ubuntu apt - libhunspell-private-dev - 1.7.2+really1.7.2-10build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libhunspell-private-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | spell checker and morphological analyzer (private headers) | https://hunspell.github.io/
- apk - hunspell - 1.7.3-r0: normalized package name match | Alpine Linux edge package indexes: hunspell from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Spell checker and morphological analyzer library and program | https://hunspell.github.io/
- apk - hunspell-dev - 1.7.3-r0: normalized package name match | Alpine Linux edge package indexes: hunspell-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Spell checker and morphological analyzer library and program (development files) | https://hunspell.github.io/
- apk - hunspell-doc - 1.7.3-r0: normalized package name match | Alpine Linux edge package indexes: hunspell-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Spell checker and morphological analyzer library and program (documentation) | https://hunspell.github.io/
- apk - hunspell-lang - 1.7.3-r0: normalized package name match | Alpine Linux edge package indexes: hunspell-lang from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Languages for package hunspell | https://hunspell.github.io/
- apk - libhunspell - 1.7.3-r0: normalized package name match | Alpine Linux edge package indexes: libhunspell from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Spell checker and morphological analyzer library and program (libraries) | https://hunspell.github.io/


## Combined YAML source

View the package source record on GitHub. [combined/hunspell.yml](https://github.com/mxcl/pkgdb/blob/main/combined/hunspell.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
