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

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

## 安装

```sh
sudo av install brew:codespell
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install codespell
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install codespell
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install codespell
```

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

- dnf (92%):

```sh
sudo dnf install codespell
```

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

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

- pacman (92%):

```sh
sudo pacman -S codespell
```

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

- zypper (92%):

```sh
sudo zypper install codespell
```

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

## 软件包事实

- **软件包键:** brew:codespell
- **软件包管理器:** Homebrew
- **版本:** 2.4.3
- **来源摘要:** Fix common misspellings in source code and text files
- **主页:** <https://github.com/codespell-project/codespell>
- **最后更新:** 2026-07-16T15:10:28Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- codespell (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

codespell is a Python command-line spell checker for source trees and text files. Its niche is deliberately narrow: it looks for known common misspellings rather than trying to act as a full dictionary-based spell checker.

### 项目历史

The project traces its original script and library copyright to Lucas De Marchi and ProFUSION embedded systems in 2010-2011. Its maintained upstream is the codespell-project GitHub repository, which the official README identifies as both the GitHub project and repository.

### 采用历史

codespell became useful package-manager material because it has a small CLI surface, needs no service credentials, and fits easily into automated checks. The supplied package facts list it across Homebrew, Debian, Fedora/dnf, MacPorts, Nix, Arch/pacman, Ubuntu, and openSUSE/zypper, and the upstream README documents a pre-commit hook configuration.

### 使用方式

The CLI is normally run against a working tree or selected paths, with dry-run output by default and an optional write mode for applying fixes. Configuration is intentionally repository-local: codespell reads pyproject.toml, setup.cfg, .codespellrc, or a file passed on the command line.

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

For packagers and release engineers, codespell is a classic low-friction quality gate: it is deterministic, text-oriented, and easy to wire into CI, pre-commit, and distro packaging checks without needing network access or secrets.

### 时间线

- 2010-2011: Original Python script and library copyright dates appear in the upstream README.
- 2011: The official GitHub repository metadata records repository creation on January 28.
- README: codespell documents pyproject.toml, setup.cfg, .codespellrc, pre-commit usage, and bundled dictionaries derived from common-misspelling lists.

### Related projects

- The upstream README documents use with pre-commit and notes dictionaries influenced by common-misspelling data, with project-specific dictionary additions maintained in the repository.

### 来源

- <https://github.com/codespell-project/codespell#readme>
- <https://api.github.com/repos/codespell-project/codespell>


## 安全说明

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: pyproject.toml, setup.cfg, .codespellrc
## 其他软件包管理器记录

- Debian apt - codespell - 2.4.1-1: normalized package name match | Debian stable package indexes: codespell from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Find and fix common misspellings in text files | https://github.com/codespell-project/codespell/
- Nix - codespell: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/codespell/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - codespell - 2.2.6-1: normalized package name match | Ubuntu 24.04 LTS package indexes: codespell from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Find and fix common misspellings in text files | https://github.com/codespell-project/codespell/
- dnf - codespell - 2.4.2-2.fc45: normalized package name match | Fedora Rawhide package metadata: codespell from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Fix common misspellings in text files | https://github.com/codespell-project/codespell/
- pacman - codespell - 2.4.3-1: normalized package name match | Arch Linux sync databases: codespell from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | check code for common misspellings | https://github.com/codespell-project/codespell
- zypper - codespell - 2.4.3-1.1: normalized package name match | openSUSE Tumbleweed package metadata: codespell from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Source code checker for common misspellings | https://github.com/codespell-project/codespell/
- MacPorts - codespell: normalized package name match | MacPorts ports tree: python/codespell/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/codespell.yml](https://github.com/mxcl/pkgdb/blob/main/combined/codespell.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
