Automic VaultAutomic Vault

brew

Install cpu_features with Homebrew, apt, Nix

Cross platform C99 library to get cpu features at runtime. Version 0.11.0 via Homebrew; verified 2026-06-01.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cpu_features

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install libcpu-features-dev

Debian stable package indexes · libcpu-features-dev · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#cpu_features

nixpkgs package indexes · pkgs/by-name/cp/cpu_features/package.nix · source: api.github.com

overview

Package summary

Cross platform C99 library to get cpu features at runtime

Commands and aliases

  • list_cpu_features

history

Project history and usage

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

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: yellow

generalized runtime or code generation signal.

Risk classifier

yellow risk · medium confidence · runtime

Why

  • generalized runtime or code generation signal

Signals

  • text:runtime

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
list_cpu_featurescliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.11.0
manager updated2026-06-01
local dataok
upstreamcurrent
latest detectedv0.11.0

https://github.com/google/cpu_features

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:cpu_features
Version0.11.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cpu_features
Homepagehttps://github.com/google/cpu_features
Repositoryhttps://github.com/google/cpu_features
Upstream docshttps://github.com/google/cpu_features#readme
LicenseApache-2.0
Source archivehttps://github.com/google/cpu_features/archive/refs/tags/v0.11.0.tar.gz
Last updated2026-06-01T17:25:20Z
Pulseupdated
Build dependenciescmake
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecpu_features
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libcpu-features-dev 0.9.0-1+b1

cross platform C99 library to get cpu features

https://github.com/google/cpu_features

sudo apt install libcpu-features-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: cpu-features
  • normalized package name match
  • Matched by: Cpu Features
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libcpu-features-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

cpu_features

nix profile install nixpkgs#cpu_features
  • normalized package name match
  • Matched by: Cpu Features
nixpkgs package indexes · api.github.com · 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 apt95%

libcpu-features-dev 0.9.0-1

cross platform C99 library to get cpu features

https://github.com/google/cpu_features

sudo apt install libcpu-features-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: cpu-features
  • normalized package name match
  • Matched by: Cpu Features
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libcpu-features-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment