# lcov を Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

lcov のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install lcov
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lcov
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

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

  証拠: 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
```

  証拠: 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
```

  証拠: openSUSE Tumbleweed package metadata: lcov from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install lcov
```

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

## パッケージ情報

- **パッケージキー:** brew:lcov
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/lcov>
- **バージョン:** 2.5
- **ソース概要:** Graphical front-end for GCC's coverage testing tool (gcov)
- **ホームページ:** <https://github.com/linux-test-project/lcov>
- **リポジトリ:** <https://github.com/linux-test-project/lcov>
- **ライセンス:** GPL-2.0-or-later
- **ソースアーカイブ:** <https://github.com/linux-test-project/lcov/releases/download/v2.5/lcov-2.5.tar.gz>
- **最終更新:** 2026-07-07T08:09:46Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- gendesc (cli)
- genhtml (cli)
- geninfo (cli)
- genpng (cli)
- lcov (cli)
- llvm2lcov (cli)
- perl2lcov (cli)
- py2lcov (cli)
- xml2lcov (cli)
- xml2lcovutil.py (cli)
- gendesc (エイリアス)
- genhtml (エイリアス)
- geninfo (エイリアス)
- genpng (エイリアス)
- lcov (エイリアス)
- llvm2lcov (エイリアス)
- perl2lcov (エイリアス)
- py2lcov (エイリアス)
- xml2lcov (エイリアス)
- xml2lcovutil.py (エイリアス)

## ビルド依存関係

- sphinx-doc

## macOS 提供ライブラリ

- perl

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.5
- マネージャ更新日: 2026-07-07
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/linux-test-project/lcov
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

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

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

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

### ソース

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


## セキュリティノート

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: /etc/lcovrc, ~/.lcovrc
## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- 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-8.fc45: normalized package name match | Fedora Rawhide package metadata: lcov from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | LTP GCOV extension code coverage tool | https://github.com/linux-test-project/lcov/
- pacman - lcov - 2.5-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.3: normalized package name match | openSUSE Tumbleweed package metadata: lcov from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A Graphical GCOV Front-end | https://github.com/linux-test-project/lcov
- zypper - lcov-example - 2.4-1.3: normalized package name match | openSUSE Tumbleweed package metadata: lcov-example from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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','kindle'


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [sphinx-doc](https://pkg.so/ja/brew/sphinx-doc/) - Build dependency declared by Homebrew.
- [kcov](https://pkg.so/ja/brew/kcov/) - Shares pkgdb curated category or tags: cli, coverage, developer-tools, testing.
- [bats-core](https://pkg.so/ja/brew/bats-core/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [allure](https://pkg.so/ja/brew/allure/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [mockolo](https://pkg.so/ja/brew/mockolo/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [gcovr](https://pkg.so/ja/brew/gcovr/) - Shares pkgdb curated category or tags: cli, coverage, developer-tools, gcov, testing.
- [mockery](https://pkg.so/ja/brew/mockery/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [pytest](https://pkg.so/ja/brew/pytest/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [conftest](https://pkg.so/ja/brew/conftest/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [jest-stare](https://pkg.so/ja/npm/jest-stare/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, html, html-report.
- [lcov-parse](https://pkg.so/ja/npm/lcov-parse/) - Local package facts share a topical domain. Shared terms: cli, coverage, developer, developer-tools, lcov.
- [lcov-result-merger](https://pkg.so/ja/npm/lcov-result-merger/) - Local package facts share a topical domain. Shared terms: cli, coverage, developer, developer-tools, lcov.

## Combined YAML source

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