Automic VaultAutomic Vault

brew

cpu_features を Homebrew, apt, Nix でインストール

cpu_features のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install cpu_features

local Homebrew formula metadata

Linux

Debian apt確認済み · 92%
sudo apt install libcpu-features-dev

Debian stable package indexes · libcpu-features-dev · ソース: deb.debian.org

Nix確認済み · 92%
nix profile install nixpkgs#cpu_features

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

概要

パッケージ概要

Cross platform C99 library to get cpu features at runtime

コマンドとエイリアス

  • list_cpu_features

履歴

プロジェクトの歴史と使われ方

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

プロジェクトの歴史

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.

採用の歴史

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.

使われ方

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.

パッケージ好きにとっての重要性

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.

タイムライン

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

セキュリティ状態

リスクレベル: yellow

generalized runtime or code generation signal.

リスク分類器

リスク yellow · 信頼度 中 · runtime

理由

  • generalized runtime or code generation signal

信号

  • text:runtime

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
list_cpu_featurescliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版0.11.0
マネージャ更新日2026-06-01
ローカルデータOK
上流最新
検出された最新v0.11.0

https://github.com/google/cpu_features

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:cpu_features
バージョン0.11.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/cpu_features
ホームページhttps://github.com/google/cpu_features
リポジトリhttps://github.com/google/cpu_features
上流ドキュメントhttps://github.com/google/cpu_features#readme
ライセンスApache-2.0
ソースアーカイブhttps://github.com/google/cpu_features/archive/refs/tags/v0.11.0.tar.gz
最終更新2026-06-01T17:25:20Z
Pulseupdated
ビルド依存関係cmake
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

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
  • 一致条件: 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
  • 一致条件: 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
  • 一致条件: 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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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