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

Unit testing framework for C++. Version 1.15.1 via Homebrew; verified 2026-06-28.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cppunit
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cppunit
```

  Evidence: 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
```

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

- Debian apt (92%):

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

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

- dnf (92%):

```sh
sudo dnf install cppunit
```

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

  Evidence: 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
```

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

- zypper (92%):

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

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

## Package facts

- **Package key:** brew:cppunit
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cppunit>
- **Version:** 1.15.1
- **Source summary:** Unit testing framework for C++
- **Homepage:** <https://wiki.freedesktop.org/www/Software/cppunit/>
- **Repository:** <https://cgit.freedesktop.org/libreoffice/cppunit>
- **Upstream docs:** <https://people.freedesktop.org/~mmohrhard/cppunit>
- **License:** LGPL-2.1-only
- **Source archive:** <https://dev-www.libreoffice.org/src/cppunit-1.15.1.tar.gz>
- **Last updated:** 2026-06-28T00:26:54-04:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- DllPlugInTester (cli)
- DllPlugInTester (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.15.1
- Package-manager updated: 2026-06-28
- Local data: ok
- Upstream repository: https://wiki.freedesktop.org/www/Software/cppunit/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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-27.fc44: normalized package name match | Fedora Rawhide package metadata: cppunit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C++ unit testing framework | https://www.freedesktop.org/wiki/Software/cppunit/
- dnf - cppunit-devel - 1.15.1-27.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Libraries and headers for cppunit development | https://www.freedesktop.org/wiki/Software/cppunit/
- dnf - cppunit-doc - 1.15.1-27.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.24: normalized package name match | openSUSE Tumbleweed package metadata: cppunit-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Include Files and Libraries for cppunit | https://www.freedesktop.org/wiki/Software/cppunit
- zypper - cppunit-devel-32bit - 1.15.1-1.24: normalized package name match | openSUSE Tumbleweed package metadata: cppunit-devel-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Include Files and Libraries for cppunit | https://www.freedesktop.org/wiki/Software/cppunit


## 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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [check](https://www.automicvault.com/pkg/brew/check/) - Shares av.db curated category or tags: c, cli, developer-tools, library, testing.
- [cutter-cli](https://www.automicvault.com/pkg/brew/cutter-cli/) - Shares av.db curated category or tags: c, cli, developer-tools, testing, unit-testing.
- [busted](https://www.automicvault.com/pkg/brew/busted/) - Shares av.db curated category or tags: cli, developer-tools, testing, unit-testing.
- [creduce](https://www.automicvault.com/pkg/brew/creduce/) - Shares av.db curated category or tags: c, cli, developer-tools, testing.
- [csmith](https://www.automicvault.com/pkg/brew/csmith/) - Shares av.db curated category or tags: c, cli, developer-tools, testing.
- [cxxtest](https://www.automicvault.com/pkg/brew/cxxtest/) - Shares av.db curated category or tags: cli, developer-tools, testing, unit-testing.
- [phpunit](https://www.automicvault.com/pkg/brew/phpunit/) - Shares av.db curated category or tags: cli, developer-tools, testing, unit-testing.
- [pytest](https://www.automicvault.com/pkg/brew/pytest/) - Shares av.db curated category or tags: cli, developer-tools, testing, unit-testing.

## Combined YAML source

View the package source record on GitHub. [combined/cppunit.yml](https://github.com/automic-vault/db/blob/main/combined/cppunit.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
