# Installer cpu_features avec Homebrew, apt, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cpu_features pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:cpu_features
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install cpu_features
```

  Preuve: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libcpu-features-dev
```

  Preuve: Debian stable package indexes: libcpu-features-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#cpu_features
```

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

## Faits du paquet

- **Clé du paquet:** brew:cpu_features
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/cpu_features>
- **Version:** 0.11.0
- **Résumé source:** Cross platform C99 library to get cpu features at runtime
- **Page d'accueil:** <https://github.com/google/cpu_features>
- **Dépôt:** <https://github.com/google/cpu_features>
- **Licence:** Apache-2.0
- **Archive source:** <https://github.com/google/cpu_features/archive/refs/tags/v0.11.0.tar.gz>
- **Dernière mise à jour:** 2026-06-01T17:25:20Z
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- list_cpu_features (cli)
- list_cpu_features (alias)

## Dépendances de compilation

- cmake

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 0.11.0
- gestionnaire mis à jour: 2026-06-01
- données locales: OK
- dépôt amont: https://github.com/google/cpu_features
- dernière version détectée: v0.11.0 (à jour)
## Historique du projet et usages

cpu_features is Google's portable C99 library for detecting CPU instruction-set and microarchitecture features at runtime.

### Historique du projet

The official repository was created in 2018. Its README emphasizes portability, old-compiler compatibility, sandbox-aware detection strategies, thread safety, no allocation, no exceptions, unit tests, and suitability for low-level code such as libc-style routines.

### Historique d'adoption

The README positions cpu_features as cross-platform infrastructure across Linux, macOS, Windows, Android, and several CPU families. It also describes Android support and an NDK cpu-features.h compatibility layer, making it relevant to projects that need runtime dispatch without depending on platform-specific probes.

### Modes d'utilisation

Users include architecture-specific headers such as cpuinfo_x86.h or cpuinfo_arm.h, read feature structures returned by GetX86Info or GetArmInfo, and select optimized code paths based on runtime CPU support. The package also builds list_cpu_features for inspecting detected features, including JSON output.

### Pourquoi les passionnés de paquets s'y intéressent

For packagers, cpu_features is a small but foundational library: it helps upstreams choose optimized code paths while still shipping generic binaries, and it is designed to build with CMake, Bazel, and Zig across many architectures.

### Chronologie

- 2018: The google/cpu_features repository was created.
- 2025: v0.10.x releases were published from the official GitHub repository.
- 2026: v0.11.0 was published from the official GitHub repository.

### Related projects

- The README describes cpu_features as an Android NDK cpu-features.h drop-in replacement.

### Sources

- <https://github.com/google/cpu_features>
- <https://raw.githubusercontent.com/google/cpu_features/main/README.md>
- <https://api.github.com/repos/google/cpu_features>
- <https://github.com/google/cpu_features/releases/tag/v0.11.0>


## Notes de sécurité

generalized runtime or code generation signal.

- **Risque Geiger:** yellow / moyen
- generalized runtime or code generation signal

## Détails de la base source

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

## Autres enregistrements de gestionnaires de paquets

- Debian apt - libcpu-features-dev - 0.9.0-1+b1: normalized package name match | Debian stable package indexes: libcpu-features-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | cross platform C99 library to get cpu features | https://github.com/google/cpu_features
- Nix - cpu_features: normalized package name match | nixpkgs package indexes: pkgs/by-name/cp/cpu_features/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcpu-features-dev - 0.9.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcpu-features-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | cross platform C99 library to get cpu features | https://github.com/google/cpu_features


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/fr/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/fr/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [cmake](https://pkg.so/fr/brew/cmake/) - Build dependency declared by Homebrew.
- [volk](https://pkg.so/fr/brew/volk/) - Popular package that depends on this formula.
- [cpuid](https://pkg.so/fr/brew/cpuid/) - Shares pkgdb curated category or tags: cli, cpu, cpu-features, hardware-detection, library.
- [zstd](https://pkg.so/fr/brew/zstd/) - Shares pkgdb curated category or tags: cli, library, system.
- [keyutils](https://pkg.so/fr/brew/keyutils/) - Shares pkgdb curated category or tags: cli, library, system.
- [libzip](https://pkg.so/fr/brew/libzip/) - Shares pkgdb curated category or tags: cli, library, system.
- [hwloc](https://pkg.so/fr/brew/hwloc/) - Shares pkgdb curated category or tags: cli, library, system.
- [wimlib](https://pkg.so/fr/brew/wimlib/) - Shares pkgdb curated category or tags: cli, library, system.
- [stress-ng](https://pkg.so/fr/brew/stress-ng/) - Shares pkgdb curated category or tags: cli, cpu, system.
- [libxmlb](https://pkg.so/fr/brew/libxmlb/) - Shares pkgdb curated category or tags: cli, library, system.
- [cpufetch](https://pkg.so/fr/brew/cpufetch/) - Local package facts share a topical domain. Shared terms: cli, cpu, cross, hardware, platform.
- [libcpuid](https://pkg.so/fr/brew/libcpuid/) - Local package facts share a topical domain. Shared terms: cli, cpu, detection, hardware, library.

## Combined YAML source

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


## Sources

- 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
