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

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

## インストール

```sh
sudo av install brew:kcov
```

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

### macOS

- Homebrew (100%):

```sh
brew install kcov
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kcov
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install kcov
```

  証拠: Debian stable package indexes: kcov from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install kcov
```

  証拠: Fedora Rawhide package metadata: kcov from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#kcov
```

  証拠: nixpkgs package indexes: pkgs/by-name/kc/kcov/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S kcov
```

  証拠: Arch Linux sync databases: kcov from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install kcov
```

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

## パッケージ情報

- **パッケージキー:** brew:kcov
- **パッケージマネージャ:** Homebrew
- **バージョン:** 43
- **ソース概要:** Code coverage tester for compiled programs, Python, and shell scripts
- **ホームページ:** <https://simonkagstrom.github.io/kcov/>
- **リポジトリ:** <https://github.com/SimonKagstrom/kcov>
- **最終更新:** 2026-07-27T15:44:48+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- kcov (エイリアス)
- kcov-system-daemon (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 43
## プロジェクトの歴史と使われ方

kcov is a code coverage tool for compiled programs, Python, and shell scripts. Its README says it began as a fork of Bcov and uses DWARF debugging information so programs can be measured without special compiler switches.

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

Simon Kagstrom created the GitHub repository in August 2010. From the README's account, kcov started with Bcov's idea of using debug information for coverage and then expanded into a broader coverage-reporting tool with HTML, lcov-style output, Cobertura XML, JSON output, and CI integrations.

Release history documents platform and integration work through the 2010s and 2020s, including Docker images from v31, macOS binaries in v32, FreeBSD and macOS build work in v36, AArch64 support in release 38, RISC-V and Codecov updates in v41, and Cobertura/Jenkins fixes in v43.

### 採用の歴史

The batch input records packages in Homebrew, Debian, Fedora, MacPorts, Nix, Arch, and openSUSE. Upstream docs also point to an official Docker image, making kcov available through both traditional package managers and container workflows.

### 使われ方

A typical invocation runs kcov with an output directory and an executable plus arguments. Users filter included or excluded paths, merge multiple coverage runs, and publish reports to CI services such as Coveralls, Codecov, Jenkins, SonarQube, GitHub Actions, and GitLab CI.

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

kcov is notable because it brings coverage to binaries and scripts without requiring the build to be compiled with coverage instrumentation. For distro packagers and CI maintainers, that makes it useful for testing shell-heavy or mixed-language projects where gcov-style workflows are awkward.

### タイムライン

- 2010-08-23: GitHub repository created.
- 2015-11-02: v29 release published.
- 2016-04-28: v31 release published; README documents official Docker images for releases since v31.
- 2018-08-23: v36 release included FreeBSD port and macOS build fixes.
- 2020-01-17: release 38 added AArch64 support.
- 2024-07-23: v43 release included Cobertura and Jenkins fixes.

### Related projects

- kcov descends from Bcov and integrates with coverage-reporting services including Coveralls, Codecov, Jenkins, SonarQube, GitHub Actions, and GitLab CI.

### ソース

- <https://bcov.sourceforge.net/>
- <https://github.com/SimonKagstrom/kcov>
- <https://github.com/SimonKagstrom/kcov/releases>
- <https://simonkagstrom.github.io/kcov>


## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- generalized runtime or code generation signal

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

- Debian apt - kcov - 43+dfsg-1+b4: normalized package name match | Debian stable package indexes: kcov from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Code coverage analysis using DWARF debugging information | https://simonkagstrom.github.io/kcov/
- Nix - kcov: normalized package name match | nixpkgs package indexes: pkgs/by-name/kc/kcov/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - kcov - 43-6.fc45: normalized package name match | Fedora Rawhide package metadata: kcov from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Code coverage tool without special compilation options | https://simonkagstrom.github.io/kcov
- pacman - kcov - 43-1: normalized package name match | Arch Linux sync databases: kcov from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Code coverage tester for compiled programs, Python scripts and shell scripts | https://simonkagstrom.github.io/kcov
- zypper - kcov - 42-4.5: normalized package name match | openSUSE Tumbleweed package metadata: kcov from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Code coverage tool without special compilation options | https://github.com/SimonKagstrom/kcov
- MacPorts - kcov: normalized package name match | MacPorts ports tree: devel/kcov/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/kcov.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kcov.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
