# 使用 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/codespell>
- **版本:** 2.4.3
- **来源摘要:** Fix common misspellings in source code and text files
- **主页:** <https://github.com/codespell-project/codespell>
- **仓库:** <https://github.com/codespell-project/codespell>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://files.pythonhosted.org/packages/80/19/45e941380f69c042b43423513d201e6592346f992394347f5e7174c31407/codespell-2.4.3.tar.gz>
- **最后更新:** 2026-07-16T15:10:28Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- codespell (cli)
- codespell (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.4.3
- 管理器更新时间: 2026-07-16
- 本地数据: OK
- 上游仓库: https://github.com/codespell-project/codespell
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** codespell
- **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 - 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [checkstyle](https://pkg.so/zh-hans/brew/checkstyle/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting.
- [actionlint](https://pkg.so/zh-hans/brew/actionlint/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [markdownlint-cli](https://pkg.so/zh-hans/brew/markdownlint-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [markdownlint-cli2](https://pkg.so/zh-hans/brew/markdownlint-cli2/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [checkmake](https://pkg.so/zh-hans/brew/checkmake/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [cpplint](https://pkg.so/zh-hans/brew/cpplint/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [editorconfig-checker](https://pkg.so/zh-hans/brew/editorconfig-checker/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [bashate](https://pkg.so/zh-hans/brew/bashate/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [cmake-lint](https://pkg.so/zh-hans/brew/cmake-lint/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, files.
- [vulture](https://pkg.so/zh-hans/brew/vulture/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-quality, developer, developer-tools.
- [eslint-nibble](https://pkg.so/zh-hans/npm/eslint-nibble/) - Local package facts share a topical domain. Shared terms: cli, code, code-quality, developer, developer-tools.

## 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
- 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
