# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 cppunit

查看 cppunit 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cppunit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cppunit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cppunit
```

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

### Linux

- apk (92%):

```sh
sudo apk add cppunit
```

  证据: Alpine Linux edge package indexes: cppunit from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install cppunit
```

  证据: Fedora Rawhide package metadata: cppunit 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#cppunit
```

  证据: nixpkgs package indexes: pkgs/by-name/cp/cppunit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cppunit
```

  证据: Arch Linux sync databases: cppunit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libcppunit-1.15-0
```

  证据: Debian stable package indexes: libcppunit-1.15-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install cppunit-devel
```

  证据: openSUSE Tumbleweed package metadata: cppunit-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:cppunit
- **软件包管理器:** Homebrew
- **版本:** 1.15.1
- **来源摘要:** Unit testing framework for C++
- **主页:** <https://wiki.freedesktop.org/www/Software/cppunit/>
- **最后更新:** 2026-06-28T00:26:54-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- DllPlugInTester (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.15.1
## 项目历史与用法

CppUnit is a C++ unit-testing framework modeled on JUnit. Its official documentation describes it as the C++ port of JUnit and points users to cookbook-style examples and generated API documentation.

### 项目历史

The official Doxygen documentation traces CppUnit to Michael Feathers' first C++ port of JUnit, followed by Jerome Lacoste's Unix/Solaris port. The CppUnit project combined and extended those earlier efforts rather than starting as an isolated implementation.

The freedesktop.org project page describes the current project as a continuation of the original CppUnit project and hosts source access, release tarballs, and contribution instructions under the LibreOffice/freedesktop infrastructure.

### 采用历史

CppUnit became a conventional packaged dependency for C and C++ projects that wanted xUnit-style tests without bundling a framework. Its source distribution and release tarballs are exposed from the freedesktop.org/LibreOffice infrastructure, and the package is distributed by Homebrew and major Unix-like package managers in the input package metadata.

### 使用方式

The framework is used to define C++ unit tests, run them through command-line or GUI-oriented runners, and emit XML test output for automated test systems.

### 为什么软件包爱好者会关心

CppUnit matters to package maintainers because it is both a library and a test dependency: downstream builds often need the headers and library for test suites, while the installed package may also expose utilities such as DllPlugInTester.

### 时间线

- Early project: Michael Feathers produced the first C++ port of JUnit.
- Early project: Jerome Lacoste provided a Unix/Solaris port.
- Freedesktop era: the project continued under freedesktop.org with LibreOffice-associated source hosting and release tarballs.

### Related projects

- JUnit supplied the model for CppUnit's xUnit-style testing approach.
- LibreOffice/freedesktop.org provide the current project hosting and release infrastructure.

### 来源

- <https://people.freedesktop.org/~mmohrhard/cppunit/>
- <https://wiki.freedesktop.org/www/Software/cppunit/>
- <https://formulae.brew.sh/formula/cppunit>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - libcppunit-1.15-0 - 1.15.1-4+b2: normalized package name match | Debian stable package indexes: libcppunit-1.15-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Unit Testing Library for C++ | https://www.freedesktop.org/wiki/Software/cppunit
- Debian apt - libcppunit-dev - 1.15.1-4+b2: normalized package name match | Debian stable package indexes: libcppunit-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Unit Testing Library for C++ - development library | https://www.freedesktop.org/wiki/Software/cppunit
- Debian apt - libcppunit-doc - 1.15.1-4: normalized package name match | Debian stable package indexes: libcppunit-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Unit Testing Library for C++ - documentation | https://www.freedesktop.org/wiki/Software/cppunit
- Nix - cppunit: normalized package name match | nixpkgs package indexes: pkgs/by-name/cp/cppunit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcppunit-1.15-0 - 1.15.1-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcppunit-1.15-0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Unit Testing Library for C++ | https://www.freedesktop.org/wiki/Software/cppunit
- Ubuntu apt - libcppunit-dev - 1.15.1-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcppunit-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Unit Testing Library for C++ - development library | https://www.freedesktop.org/wiki/Software/cppunit
- Ubuntu apt - libcppunit-doc - 1.15.1-4build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcppunit-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Unit Testing Library for C++ - documentation | https://www.freedesktop.org/wiki/Software/cppunit
- apk - cppunit - 1.15.1-r4: normalized package name match | Alpine Linux edge package indexes: cppunit from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C++ unit testing framework | https://www.freedesktop.org/wiki/Software/cppunit/
- apk - cppunit-dev - 1.15.1-r4: normalized package name match | Alpine Linux edge package indexes: cppunit-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C++ unit testing framework (development files) | https://www.freedesktop.org/wiki/Software/cppunit/
- apk - cppunit-doc - 1.15.1-r4: normalized package name match | Alpine Linux edge package indexes: cppunit-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C++ unit testing framework (documentation) | https://www.freedesktop.org/wiki/Software/cppunit/
- dnf - cppunit - 1.15.1-28.fc45: normalized package name match | Fedora Rawhide package metadata: cppunit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | C++ unit testing framework | https://www.freedesktop.org/wiki/Software/cppunit/
- dnf - cppunit-devel - 1.15.1-28.fc45: normalized package name match | Fedora Rawhide package metadata: cppunit-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Libraries and headers for cppunit development | https://www.freedesktop.org/wiki/Software/cppunit/
- dnf - cppunit-doc - 1.15.1-28.fc45: normalized package name match | Fedora Rawhide package metadata: cppunit-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | HTML formatted API documention for cppunit | https://www.freedesktop.org/wiki/Software/cppunit/
- pacman - cppunit - 1.15.1-5: normalized package name match | Arch Linux sync databases: cppunit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A C++ unit testing framework | https://www.freedesktop.org/wiki/Software/cppunit
- zypper - cppunit-devel - 1.15.1-1.26: normalized package name match | openSUSE Tumbleweed package metadata: cppunit-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Include Files and Libraries for cppunit | https://www.freedesktop.org/wiki/Software/cppunit
- zypper - cppunit-devel-32bit - 1.15.1-1.26: normalized package name match | openSUSE Tumbleweed package metadata: cppunit-devel-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Include Files and Libraries for cppunit | https://www.freedesktop.org/wiki/Software/cppunit


## Combined YAML source

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