# cpuid を Homebrew, apt, dnf, MacPorts, Nix, zypper でインストール

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

## インストール

```sh
sudo av install brew:cpuid
```

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

### macOS

- Homebrew (100%):

```sh
brew install cpuid
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cpuid
```

  証拠: MacPorts ports tree: sysutils/cpuid/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install cpuid
```

  証拠: Debian stable package indexes: cpuid from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cpuid
```

  証拠: Fedora Rawhide package metadata: cpuid 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#cpuid
```

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

- zypper (92%):

```sh
sudo zypper install cpuid
```

  証拠: openSUSE Tumbleweed package metadata: cpuid from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:cpuid
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/cpuid>
- **バージョン:** 2.4.0
- **ソース概要:** CPU feature identification for Go
- **ホームページ:** <https://github.com/klauspost/cpuid>
- **リポジトリ:** <https://github.com/klauspost/cpuid>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/klauspost/cpuid/archive/refs/tags/v2.4.0.tar.gz>
- **最終更新:** 2026-07-25T14:20:51-04:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- cpuid (cli)
- cpuid (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.4.0
- マネージャ更新日: 2026-07-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/klauspost/cpuid
- 検出された最新: v2.4.0 (最新)
## プロジェクトの歴史と使われ方

cpuid is a Go package and command-line tool for detecting CPU information and CPU feature flags at runtime without cgo.

### プロジェクトの歴史

The official GitHub repository was created in 2015. The README describes startup CPU detection cached for fast access during a Go program's lifetime, with support for x86/x64, ARM/ARM64, and RISC-V.

### 採用の歴史

cpuid fits Go module distribution as a library imported with github.com/klauspost/cpuid/v2, while also offering an installable cpuid binary via go install, GitHub release binaries, and Homebrew for macOS/Linux users.

### 使われ方

Go programs use the shared cpuid.CPU value to inspect brand, cores, cache, frequency, and feature sets, then call Supports, Has, or HasAll to gate optimized code paths. The command-line binary prints CPU details and supports JSON output.

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

For packagers and Go maintainers, cpuid is notable because it combines a Go module API with a packaged diagnostic binary, avoids external C code, and exposes runtime feature detection useful to compression, crypto, and other optimized Go libraries.

### タイムライン

- 2015: The klauspost/cpuid repository was created.
- 2024: v2.2.8 and v2.2.9 releases were published.
- 2025: v2.2.10, v2.2.11, and v2.3.0 releases were published.

### Related projects

- pkg.go.dev provides generated API documentation for the github.com/klauspost/cpuid/v2 Go module.

### ソース

- <https://github.com/klauspost/cpuid>
- <https://raw.githubusercontent.com/klauspost/cpuid/master/README.md>
- <https://pkg.go.dev/github.com/klauspost/cpuid/v2>
- <https://api.github.com/repos/klauspost/cpuid>
- <https://github.com/klauspost/cpuid/releases/tag/v2.3.0>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

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

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

- Debian apt - cpuid - 20250316-1: normalized package name match | Debian stable package indexes: cpuid from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool to dump x86 CPUID information about the CPU(s) | https://www.etallen.com/cpuid.html
- Nix - cpuid: normalized package name match | nixpkgs package indexes: pkgs/by-name/cp/cpuid/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cpuid - 20240330-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: cpuid from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool to dump x86 CPUID information about the CPU(s) | https://www.etallen.com/cpuid.html
- dnf - cpuid - 20250419-5.fc45: normalized package name match | Fedora Rawhide package metadata: cpuid from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Dumps information about the CPU(s) | http://www.etallen.com/cpuid.html
- zypper - cpuid - 20260503-1.3: normalized package name match | openSUSE Tumbleweed package metadata: cpuid from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | x86 CPU identification tool | http://etallen.com/cpuid.html
- MacPorts - cpuid: normalized package name match | MacPorts ports tree: sysutils/cpuid/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [cpu_features](https://pkg.so/ja/brew/cpu-features/) - Shares pkgdb curated category or tags: cli, cpu, cpu-features, hardware-detection, library.
- [zstd](https://pkg.so/ja/brew/zstd/) - Shares pkgdb curated category or tags: cli, library, system.
- [keyutils](https://pkg.so/ja/brew/keyutils/) - Shares pkgdb curated category or tags: cli, library, system.
- [libzip](https://pkg.so/ja/brew/libzip/) - Shares pkgdb curated category or tags: cli, library, system.
- [hwloc](https://pkg.so/ja/brew/hwloc/) - Shares pkgdb curated category or tags: cli, library, system.
- [wimlib](https://pkg.so/ja/brew/wimlib/) - Shares pkgdb curated category or tags: cli, library, system.
- [stress-ng](https://pkg.so/ja/brew/stress-ng/) - Shares pkgdb curated category or tags: cli, cpu, system.
- [mactop](https://pkg.so/ja/brew/mactop/) - Shares pkgdb curated category or tags: cli, go, system.
- [libcpuid](https://pkg.so/ja/brew/libcpuid/) - Local package facts share a topical domain. Shared terms: cli, cpu, cpuid, detection, feature.

## Combined YAML source

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


## ソース

- 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
