# libcpucycles mit Homebrew, dnf, Nix, apt installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für libcpucycles in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:libcpucycles
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install libcpucycles
```

  Evidenz: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install libcpucycles
```

  Evidenz: Fedora Rawhide package metadata: libcpucycles 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#libcpucycles
```

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

- Debian apt (92%):

```sh
sudo apt install cpucycles
```

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

## Paketfakten

- **Paketschlüssel:** brew:libcpucycles
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/libcpucycles>
- **Version:** 20260625
- **Quellzusammenfassung:** Microlibrary for counting CPU cycles
- **Homepage:** <https://cpucycles.cr.yp.to/>
- **Upstream-Dokumentation:** <https://cpucycles.cr.yp.to/>
- **Lizenz:** LicenseRef-Homebrew-public-domain OR CC0-1.0 OR 0BSD OR MIT-0 OR MIT
- **Quellarchiv:** <https://cpucycles.cr.yp.to/libcpucycles-20260625.tar.gz>
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- cpucycles-info (cli)
- cpucycles-open (cli)
- cpucycles-info (Alias)
- cpucycles-open (Alias)

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 20260625
- lokale Daten: OK
- Upstream-Repository: https://cpucycles.cr.yp.to/
- Info: No package-manager update timestamp was available.
- Info: Release/tag comparison is only available for GitHub repositories.
## Projektgeschichte und Nutzung

libcpucycles is a small timing library for counting CPU cycles across multiple CPU and operating-system counter mechanisms. It comes from the cr.yp.to ecosystem associated with Daniel J. Bernstein's performance-oriented cryptographic and systems software.

### Projektgeschichte

The official introduction describes libcpucycles as a microlibrary for cycle counting, with a simple API: include `cpucycles.h`, call `cpucycles()`, and link with `-lcpucycles`. The project abstracts machine-level counters such as amd64 TSC/PMC, ARM counters, RISC-V counters, and OS fallbacks such as `mach_absolute_time`, `perf_event`, `CLOCK_MONOTONIC`, and `gettimeofday`.

The release notes visible in the 20250925 documentation show active portability work after the early 2023 tarballs, including s390x counter support, FreeBSD support, arm32-1176 support, a `cpucycles-info` man page, and macOS build fixes.

### Adoptionsgeschichte

Adoption is concentrated among developers who need reproducible low-overhead timing for cryptography, benchmarking, and systems tuning. Its appearance in Homebrew, Debian, Ubuntu, Fedora-family packages, and Nix reflects a package-manager role as a tiny measurement primitive rather than an end-user application.

### Wie es verwendet wird

Programmers use libcpucycles when they want an architecture-aware cycle counter without writing per-platform assembly and fallback code. Package users also get tools such as `cpucycles-info` and `cpucycles-open`, which help inspect available counters and support benchmarking workflows.

### Warum Paket-Nerds sich dafür interessieren

libcpucycles is package-nerd interesting because it packages the messy hardware reality of cycle counters into a minimal library. It is deliberately small, but its value is in the portability table: one dependency handles CPU families and OS timing APIs that would otherwise become build-system conditionals in every benchmark.

### Zeitleiste

- 2023-01-10: Release notes document `cpucycles_version()` and s390x counter work.
- 2023-01-15: Release notes mention behavior alignment for `cpucycles_version()`.
- 2024-01-14: Release notes add arm32-1176 counter support, FreeBSD support, and install/license documentation updates.
- 2024-03-18: Release notes mention macOS porting fixes and the `cpucycles-info` man page.
- 2025-09-25: Documentation tree published for libcpucycles-20250925.

### Related projects

- Related projects include the broader cr.yp.to software family, architecture-specific cycle counters such as TSC and PMC, Linux `perf_event`, POSIX clocks, and benchmarking code in cryptographic libraries.

### Quellen

- <https://cpucycles.cr.yp.to/>
- <https://cpucycles.cr.yp.to/libcpucycles-20250925/doc/api.md.html>
- <https://cpucycles.cr.yp.to/libcpucycles-20250925/doc/download.md.html>
- <https://formulae.brew.sh/formula/libcpucycles>


## Sicherheitshinweise

library-like package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- library-like package without higher-risk signals

## Details aus der Quelldatenbank

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libcpucycles
- **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

## Andere Paketmanager-Einträge

- Debian apt - cpucycles - 0~20240318-2: normalized package name match | Debian stable package indexes: cpucycles from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line tool for counting CPU cycles (libcpucycles) | https://cpucycles.cr.yp.to/
- Debian apt - libcpucycles-dev - 0~20240318-2: normalized package name match | Debian stable package indexes: libcpucycles-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for counting CPU cycles - development files | https://cpucycles.cr.yp.to/
- Debian apt - libcpucycles1 - 0~20240318-2: normalized package name match | Debian stable package indexes: libcpucycles1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for counting CPU cycles | https://cpucycles.cr.yp.to/
- Nix - libcpucycles: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libcpucycles/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cpucycles - 0~20240114-1: normalized package name match | Ubuntu 24.04 LTS package indexes: cpucycles from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line tool for counting CPU cycles (libcpucycles) | https://cpucycles.cr.yp.to/
- Ubuntu apt - libcpucycles-dev - 0~20240114-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcpucycles-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for counting CPU cycles - development files | https://cpucycles.cr.yp.to/
- Ubuntu apt - libcpucycles1 - 0~20240114-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcpucycles1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for counting CPU cycles | https://cpucycles.cr.yp.to/
- dnf - libcpucycles - 20260625-2.fc45: normalized package name match | Fedora Rawhide package metadata: libcpucycles from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Library for counting CPU cycles | https://cpucycles.cr.yp.to/
- dnf - libcpucycles-devel - 20260625-2.fc45: normalized package name match | Fedora Rawhide package metadata: libcpucycles-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for libcpucycles | https://cpucycles.cr.yp.to/
- dnf - libcpucycles-static - 20260625-2.fc45: normalized package name match | Fedora Rawhide package metadata: libcpucycles-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Static version of the libcpucycles library | https://cpucycles.cr.yp.to/


## Verwandte Links

- [Terminal utility packages](https://pkg.so/de/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/de/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/de/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://pkg.so/de/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [libeatmydata](https://pkg.so/de/brew/libeatmydata/) - Shares pkgdb curated category or tags: cli, performance, system.
- [libzip](https://pkg.so/de/brew/libzip/) - Shares pkgdb curated category or tags: c, cli, library, system.
- [jemalloc](https://pkg.so/de/brew/jemalloc/) - Shares pkgdb curated category or tags: c, cli, performance, system.
- [phoronix-test-suite](https://pkg.so/de/brew/phoronix-test-suite/) - Shares pkgdb curated category or tags: benchmarking, cli, performance, system.
- [liblockfile](https://pkg.so/de/brew/liblockfile/) - Shares pkgdb curated category or tags: c, cli, library, system.
- [libcpuid](https://pkg.so/de/brew/libcpuid/) - Shares pkgdb curated category or tags: c, cli, library, system.
- [zstd](https://pkg.so/de/brew/zstd/) - Shares pkgdb curated category or tags: cli, library, system.
- [keyutils](https://pkg.so/de/brew/keyutils/) - Shares pkgdb curated category or tags: cli, library, system.
- [asitop](https://pkg.so/de/brew/asitop/) - Local package facts share a topical domain. Shared terms: cli, cpu, performance, system.

## Combined YAML source

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


## Quellen

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