# Install gcovr with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Reports from gcov test coverage program. Version 8.6 via Homebrew; verified 2026-04-22.

## Install

```sh
sudo av install brew:gcovr
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gcovr
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gcovr
```

  Evidence: MacPorts ports tree: devel/gcovr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gcovr
```

  Evidence: Alpine Linux edge package indexes: gcovr from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install gcovr
```

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

- dnf (92%):

```sh
sudo dnf install gcovr
```

  Evidence: Fedora Rawhide package metadata: gcovr 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#gcovr
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gc/gcovr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gcovr
```

  Evidence: Arch Linux sync databases: gcovr from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gcovr
```

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

## Package facts

- **Package key:** brew:gcovr
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gcovr>
- **Version:** 8.6
- **Source summary:** Reports from gcov test coverage program
- **Homepage:** <https://gcovr.com/>
- **Repository:** <https://github.com/gcovr/gcovr>
- **Upstream docs:** <https://gcovr.com/en/stable>
- **License:** BSD-3-Clause
- **Source archive:** <https://files.pythonhosted.org/packages/07/37/b4a87dff166dc0a5002e9d03fcb6ca8eeff048247b011b67f047e31122c9/gcovr-8.6.tar.gz>
- **Last updated:** 2026-04-22T10:28:01Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gcovr (cli)
- gcovr (alias)

## Dependencies

- python@3.14

## Uses from macOS

- libxml2
- libxslt

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 8.6
- Package-manager updated: 2026-04-22
- Local data: ok
- Upstream repository: https://gcovr.com/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

gcovr is a Python-based coverage reporting tool for GCC/gcov data. It turns compiler coverage output into human and machine-readable reports, including text, HTML, CSV, JSON, Cobertura, Coveralls, SonarQube, JaCoCo, and LCOV formats.

### Project history

The official changelog traces gcovr releases back to version 2.0 on 22 August 2010. The current GitHub repository was created in May 2013 and describes the project as generating code coverage reports with gcc/gcov.

### Adoption history

gcovr became a common packaging target because it sits at a practical boundary between C/C++ test builds and CI coverage dashboards. Its documentation focuses on command-line operation, configuration files, filtering, reproducible timestamps, and multiple report formats, which are all package-manager-friendly workflows.

### How it is used

Typical use is to compile code with coverage flags, run tests, and invoke gcovr from a project root to collect gcov data and emit reports. The configuration file support lets repeatable coverage options live in a repository instead of only in CI shell scripts.

### Why package nerds care

gcovr matters because it gives gcov users a single small CLI for report formats expected by CI systems and code-quality services. It is a bridge package: not a compiler, not a test framework, but the adapter that makes compiler-native coverage data useful to modern automation.

### Timeline

- 2010: The official changelog records gcovr 2.0.
- 2013: GitHub records the gcovr repository creation.
- 2018: gcovr 4.0 appears in the official changelog.
- 2021: gcovr 5.0 appears in the official changelog.
- 2024: gcovr 8.0 appears in the official changelog.
- 2026: gcovr 8.6 is documented with Python 3.14 support and Python 3.9 support dropped.

### Related projects

- GCC and gcov provide the compiler and raw coverage data that gcovr processes.
- LCOV, Cobertura, Coveralls, SonarQube, and JaCoCo are report ecosystems supported by gcovr output formats.
- Python is the implementation and packaging ecosystem for the gcovr CLI.

### Sources

- <https://api.github.com/repos/gcovr/gcovr>
- <https://gcovr.com/en/stable>
- <https://gcovr.com/en/stable/changelog.html>
- <https://gcovr.com/en/stable/guide.html>
- <https://github.com/gcovr/gcovr>


## 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: gcovr.cfg in the -r/--root directory
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gcovr
- **Version Scheme:** 0
- **Revision:** 2
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - gcovr - 7.2+really-1.1: normalized package name match | Debian stable package indexes: gcovr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Manages the compilation of coverage information from gcov | http://gcovr.com/
- Nix - gcovr: normalized package name match | nixpkgs package indexes: pkgs/by-name/gc/gcovr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gcovr - 7.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcovr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Manages the compilation of coverage information from gcov | http://gcovr.com/
- apk - gcovr - 8.6-r1: normalized package name match | Alpine Linux edge package indexes: gcovr from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Generates a simple report that summarizes the gcc code coverage | http://gcovr.com/
- apk - gcovr-pyc - 8.6-r1: normalized package name match | Alpine Linux edge package indexes: gcovr-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for gcovr | http://gcovr.com/
- dnf - gcovr - 8.6-2.fc45: normalized package name match | Fedora Rawhide package metadata: gcovr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A code coverage report generator using GNU gcov | https://gcovr.com/
- dnf - gcovr-doc - 8.6-2.fc45: normalized package name match | Fedora Rawhide package metadata: gcovr-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation of gcovr | https://gcovr.com/
- pacman - gcovr - 8.6-1: normalized package name match | Arch Linux sync databases: gcovr from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | provides a utility for managing the use of the GNU gcov utility | https://gcovr.com/
- zypper - gcovr - 6.0-1.8: normalized package name match | openSUSE Tumbleweed package metadata: gcovr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A code coverage report generator using GNU gcov | https://gcovr.com/
- zypper - gcovr-doc - 6.0-1.8: normalized package name match | openSUSE Tumbleweed package metadata: gcovr-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Documentation of gcovr | https://gcovr.com/
- MacPorts - gcovr: normalized package name match | MacPorts ports tree: devel/gcovr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 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.
- [lcov](https://www.automicvault.com/pkg/brew/lcov/) - Shares av.db curated category or tags: cli, coverage, developer-tools, gcov, testing.
- [kcov](https://www.automicvault.com/pkg/brew/kcov/) - Shares av.db curated category or tags: cli, coverage, developer-tools, testing.
- [allure](https://www.automicvault.com/pkg/brew/allure/) - Shares av.db curated category or tags: cli, developer-tools, reports, 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.
- [nox](https://www.automicvault.com/pkg/brew/nox/) - Shares av.db curated category or tags: cli, developer-tools, python, testing.
- [pytest](https://www.automicvault.com/pkg/brew/pytest/) - Shares av.db curated category or tags: cli, developer-tools, python, testing.

## Combined YAML source

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