# Install pytest with Homebrew, apt, dnf

Simple powerful testing with Python. Version 9.1.1 via Homebrew; verified 2026-06-20.

## Install

```sh
sudo av install brew:pytest
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install pytest
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install python-pytest-doc
```

  Evidence: Debian stable package indexes: python-pytest-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install python3-pytest
```

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

## Package facts

- **Package key:** brew:pytest
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/pytest>
- **Version:** 9.1.1
- **Source summary:** Simple powerful testing with Python
- **Homepage:** <https://docs.pytest.org/en/latest/>
- **Repository:** <https://github.com/pytest-dev/pytest>
- **Upstream docs:** <https://docs.pytest.org/en/stable>
- **License:** MIT
- **Source archive:** <https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz>
- **Last updated:** 2026-06-20T12:34:40Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- py.test (cli)
- pytest (cli)
- py.test (alias)
- pytest (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: 9.1.1
- Package-manager updated: 2026-06-20
- Local data: ok
- Upstream repository: https://docs.pytest.org/en/latest/
- info: Release/tag comparison is only available for GitHub repositories.

## 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: pytest.toml, .pytest.toml, pytest.ini, .pytest.ini, pyproject.toml, tox.ini, setup.cfg
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** pytest
- **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 - python-pytest-doc - 8.3.5-2: normalized package name match | Debian stable package indexes: python-pytest-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple, powerful testing in Python - Documentation | https://pytest.org/
- Debian apt - python3-pytest - 8.3.5-2: normalized package name match | Debian stable package indexes: python3-pytest from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple, powerful testing in Python3 | https://pytest.org/
- Ubuntu apt - python-pytest-doc - 7.4.4-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python-pytest-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple, powerful testing in Python - Documentation | https://pytest.org/
- Ubuntu apt - python3-pytest - 7.4.4-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-pytest from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple, powerful testing in Python3 | https://pytest.org/
- dnf - python3-pytest - 9.0.3-2.fc45: normalized package name match | Fedora Rawhide package metadata: python3-pytest from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Simple powerful testing with Python | https://pytest.org


## Related links

- [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.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [busted](https://www.automicvault.com/pkg/brew/busted/) - Shares av.db curated category or tags: cli, developer-tools, testing, unit-testing.
- [cargo-nextest](https://www.automicvault.com/pkg/brew/cargo-nextest/) - Shares av.db curated category or tags: cli, developer-tools, test-runner, testing.
- [gcovr](https://www.automicvault.com/pkg/brew/gcovr/) - Shares av.db curated category or tags: cli, developer-tools, python, testing.
- [gotestsum](https://www.automicvault.com/pkg/brew/gotestsum/) - Shares av.db curated category or tags: cli, developer-tools, test-runner, testing.
- [lit](https://www.automicvault.com/pkg/brew/lit/) - Shares av.db curated category or tags: cli, developer-tools, test-runner, testing.
- [locust](https://www.automicvault.com/pkg/brew/locust/) - Shares av.db curated category or tags: cli, developer-tools, python, testing.
- [mongo-orchestration](https://www.automicvault.com/pkg/brew/mongo-orchestration/) - Shares av.db curated category or tags: cli, developer-tools, python, testing.
- [moto](https://www.automicvault.com/pkg/brew/moto/) - Shares av.db curated category or tags: cli, developer-tools, python, testing.
- [cxxtest](https://www.automicvault.com/pkg/brew/cxxtest/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, python, python-3-14.
- [roundup](https://www.automicvault.com/pkg/brew/roundup/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, runner, test.

## Combined YAML source

View the package source record on GitHub. [combined/pytest.yml](https://github.com/automic-vault/db/blob/main/combined/pytest.yml)


## Sources

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