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

Graphical front-end for GCC's coverage testing tool (gcov). Version 2.5 via Homebrew; verified 2026-07-07.

## Install

```sh
sudo av install brew:lcov
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install lcov
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lcov
```

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

### Linux

- apk (92%):

```sh
sudo apk add lcov
```

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

- Debian apt (92%):

```sh
sudo apt install lcov
```

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

- dnf (92%):

```sh
sudo dnf install lcov
```

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

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

- pacman (92%):

```sh
sudo pacman -S lcov
```

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

- zypper (92%):

```sh
sudo zypper install lcov
```

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

### Windows

- Chocolatey (92%):

```sh
choco install lcov
```

  Evidence: Chocolatey community package catalog: lcov from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','kubectx'

## Package facts

- **Package key:** brew:lcov
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/lcov>
- **Version:** 2.5
- **Source summary:** Graphical front-end for GCC's coverage testing tool (gcov)
- **Homepage:** <https://github.com/linux-test-project/lcov>
- **Repository:** <https://github.com/linux-test-project/lcov>
- **Upstream docs:** <https://github.com/linux-test-project/lcov#readme>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://github.com/linux-test-project/lcov/releases/download/v2.5/lcov-2.5.tar.gz>
- **Last updated:** 2026-07-07T08:09:46Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gendesc (cli)
- genhtml (cli)
- geninfo (cli)
- genpng (cli)
- lcov (cli)
- llvm2lcov (cli)
- perl2lcov (cli)
- py2lcov (cli)
- xml2lcov (cli)
- xml2lcovutil.py (cli)
- gendesc (alias)
- genhtml (alias)
- geninfo (alias)
- genpng (alias)
- lcov (alias)
- llvm2lcov (alias)
- perl2lcov (alias)
- py2lcov (alias)
- xml2lcov (alias)
- xml2lcovutil.py (alias)

## Build dependencies

- sphinx-doc

## Uses from macOS

- perl

## 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: 2.5
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://github.com/linux-test-project/lcov
- info: No cached GitHub release or tag data was available.
## Project history and usage

LCOV is the Linux Test Project GCOV extension: a suite of Perl-oriented command-line tools that collect, transform, merge, filter, and render code coverage data, most famously as navigable HTML reports generated by `genhtml`.

### Project history

The LCOV README describes the project as a tool for manipulating and displaying what parts of a program were covered during tests. It began as a front end around GCC `gcov` output and was initially designed to support Linux kernel coverage measurements, while also working for ordinary user-space programs.

Over time LCOV expanded beyond GCC `gcov` text data. The README lists converters and support for coverage sources such as LLVM `llvm-cov`, Python Coverage.py, Cobertura-like XML, Perl Devel::Cover, and Jacoco-style workflows, along with differential coverage, date binning, owner binning, and spreadsheet/reporting support.

### Adoption history

LCOV became a common package in Unix developer toolchains because it gives C and C++ projects a simple path from compiler coverage flags to browsable HTML reports. It is packaged across Homebrew, Debian, Ubuntu, Fedora, Arch, Nix, MacPorts, Chocolatey, Alpine, and openSUSE-style ecosystems.

Its adoption also comes from CI and kernel-development workflows: coverage reports are easy to publish as artifacts, and LCOV trace files can be merged, filtered, and compared across test runs.

### How it is used

Typical usage captures baseline or test coverage with `lcov` or `geninfo`, removes unwanted paths, merges trace files, and renders the result with `genhtml`. Related utilities convert data from Perl, Python, LLVM, and XML coverage formats into LCOV trace data.

### Why package nerds care

LCOV matters to package nerds because it is one of the standard lingua franca formats and toolsets for coverage artifacts. Many packages, CI recipes, and dashboards understand LCOV trace files or HTML output even when the project itself uses a different compiler or language.

It is also a classic example of a packaging-friendly developer tool: script-based, manpage documented, configurable via system and user rc files, and useful both in local shells and noninteractive build farms.

### Timeline

- 2000s: LCOV originated in the Linux Test Project as a GCOV extension for kernel coverage measurement.
- 2022-06-03: Version 1.16 release published on GitHub.
- 2023-05-25: Version 2.0 release published.
- 2024-04-19: Version 2.1 release published.
- 2025-01-09: Version 2.3 release published.
- 2025-12-21: Version 2.4 release published.

### Related projects

- Related projects and formats include GCC `gcov`, LLVM `llvm-cov`, Linux Test Project, Coverage.py, Cobertura XML, Perl Devel::Cover, Jacoco, gcovr, CI coverage artifact publishing, and kernel coverage tooling.

### Sources

- <https://api.github.com/repos/linux-test-project/lcov/releases?per_page=20>
- <https://github.com/linux-test-project/lcov>
- <https://github.com/linux-test-project/lcov/tree/master/man>
- <https://raw.githubusercontent.com/linux-test-project/lcov/master/README.rst>
- <https://www.kernel.org/doc/html/v6.0/dev-tools/gcov.html>


## 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: /etc/lcovrc, ~/.lcovrc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lcov
- **Version Scheme:** 0
- **Revision:** 0
- **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 - lcov - 2.3.1-1: normalized package name match | Debian stable package indexes: lcov from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Summarise Code coverage information from GCOV | https://github.com/linux-test-project/lcov
- Nix - lcov: normalized package name match | nixpkgs package indexes: pkgs/by-name/lc/lcov/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - lcov - 2.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: lcov from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Summarise Code coverage information from GCOV | https://github.com/linux-test-project/lcov.git
- apk - lcov - 2.3.1-r1: normalized package name match | Alpine Linux edge package indexes: lcov from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | LCOV is an extension to GCOV. It provides a graphical frontend for converage information | https://github.com/linux-test-project/lcov
- apk - lcov-doc - 2.3.1-r1: normalized package name match | Alpine Linux edge package indexes: lcov-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | LCOV is an extension to GCOV. It provides a graphical frontend for converage information (documentation) | https://github.com/linux-test-project/lcov
- dnf - lcov - 2.0-7.fc44: normalized package name match | Fedora Rawhide package metadata: lcov from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | LTP GCOV extension code coverage tool | https://github.com/linux-test-project/lcov/
- pacman - lcov - 2.4-1: normalized package name match | Arch Linux sync databases: lcov from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | front-end for GCC’s coverage testing tool gcov | https://github.com/linux-test-project/lcov
- zypper - lcov - 2.4-1.2: normalized package name match | openSUSE Tumbleweed package metadata: lcov from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Graphical GCOV Front-end | https://github.com/linux-test-project/lcov
- zypper - lcov-example - 2.4-1.2: normalized package name match | openSUSE Tumbleweed package metadata: lcov-example from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Example for lcov | https://github.com/linux-test-project/lcov
- MacPorts - lcov: normalized package name match | MacPorts ports tree: devel/lcov/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - lcov: normalized package name match | Chocolatey community package catalog: lcov from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','kubectx'


## 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.
- [sphinx-doc](https://www.automicvault.com/pkg/brew/sphinx-doc/) - Build dependency declared by Homebrew.
- [gcovr](https://www.automicvault.com/pkg/brew/gcovr/) - 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, testing.
- [artillery](https://www.automicvault.com/pkg/brew/artillery/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [busted](https://www.automicvault.com/pkg/brew/busted/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [bzt](https://www.automicvault.com/pkg/brew/bzt/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [cargo-fuzz](https://www.automicvault.com/pkg/brew/cargo-fuzz/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [cargo-hack](https://www.automicvault.com/pkg/brew/cargo-hack/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [xctesthtmlreport](https://www.automicvault.com/pkg/brew/xctesthtmlreport/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, html, html-report.
- [htmltest](https://www.automicvault.com/pkg/brew/htmltest/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, html, testing.

## Combined YAML source

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