# Install codespell with Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper

Fix common misspellings in source code and text files. Version 2.4.2 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install codespell
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install codespell
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: Fedora Rawhide package metadata: codespell from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#codespell
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: codespell from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:codespell
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/codespell>
- **Version:** 2.4.2
- **Source summary:** Fix common misspellings in source code and text files
- **Homepage:** <https://github.com/codespell-project/codespell>
- **Repository:** <https://github.com/codespell-project/codespell>
- **Upstream docs:** <https://github.com/codespell-project/codespell#readme>
- **License:** GPL-2.0-only
- **Source archive:** <https://files.pythonhosted.org/packages/2d/9d/1d0903dff693160f893ca6abcabad545088e7a2ee0a6deae7c24e958be69/codespell-2.4.2.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- codespell (cli)
- codespell (alias)

## Dependencies

- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.4.2
- Local data: ok
- Upstream repository: https://github.com/codespell-project/codespell
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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 Details

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

## Other Package-Manager Records

- 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.1-9.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Fix common misspellings in text files | https://github.com/codespell-project/codespell/
- pacman - codespell - 2.4.2-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.2-1.2: normalized package name match | openSUSE Tumbleweed package metadata: codespell from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [flake8](https://www.automicvault.com/pkg/brew/flake8/) - Shares av.db curated category or tags: cli, code-quality, developer-tools, linting.
- [actionlint](https://www.automicvault.com/pkg/brew/actionlint/) - Shares av.db curated category or tags: cli, developer-tools, linting.
- [bashate](https://www.automicvault.com/pkg/brew/bashate/) - Shares av.db curated category or tags: cli, developer-tools, linting.
- [bpmnlint](https://www.automicvault.com/pkg/brew/bpmnlint/) - Shares av.db curated category or tags: cli, developer-tools, linting.
- [checkbashisms](https://www.automicvault.com/pkg/brew/checkbashisms/) - Shares av.db curated category or tags: cli, developer-tools, linting.
- [checkmake](https://www.automicvault.com/pkg/brew/checkmake/) - Shares av.db curated category or tags: cli, developer-tools, linting.
- [cpplint](https://www.automicvault.com/pkg/brew/cpplint/) - Shares av.db curated category or tags: cli, developer-tools, linting.
- [editorconfig-checker](https://www.automicvault.com/pkg/brew/editorconfig-checker/) - Shares av.db curated category or tags: cli, developer-tools, linting.
- [vulture](https://www.automicvault.com/pkg/brew/vulture/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-quality, developer, developer-tools.
- [cmake-lint](https://www.automicvault.com/pkg/brew/cmake-lint/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, files.
- [lizard-analyzer](https://www.automicvault.com/pkg/brew/lizard-analyzer/) - Both packages touch the same language runtime or ecosystem. 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/automic-vault/db/blob/main/combined/codespell.yml)


## Sources

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