macOS
brew install cpuidlocal Homebrew formula metadata
sudo port install cpuidMacPorts ports tree · sysutils/cpuid/Portfile · 来源: api.github.com
安装
brew install cpuidlocal Homebrew formula metadata
sudo port install cpuidMacPorts ports tree · sysutils/cpuid/Portfile · 来源: api.github.com
sudo dnf install cpuidFedora Rawhide package metadata · cpuid · 来源: dl.fedoraproject.org
nix profile install nixpkgs#cpuidnixpkgs package indexes · pkgs/by-name/cp/cpuid/package.nix · 来源: api.github.com
sudo zypper install cpuidopenSUSE Tumbleweed package metadata · cpuid · 来源: download.opensuse.org
概览
CPU feature identification for Go
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cpuid | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/klauspost/cpuid
安装元数据
| 软件包键 | brew:cpuid |
|---|---|
| 版本 | 2.4.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cpuid |
| 主页 | https://github.com/klauspost/cpuid |
| 仓库 | https://github.com/klauspost/cpuid |
| 上游文档 | https://github.com/klauspost/cpuid#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/klauspost/cpuid/archive/refs/tags/v2.4.0.tar.gz |
| 最后更新 | 2026-06-30T15:04:20Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cpuid 20250316-1
tool to dump x86 CPUID information about the CPU(s)
https://www.etallen.com/cpuid.html
sudo apt install cpuidcpuid
nix profile install nixpkgs#cpuidcpuid 20240330-1ubuntu2
tool to dump x86 CPUID information about the CPU(s)
https://www.etallen.com/cpuid.html
sudo apt install cpuidcpuid 20250419-4.fc44
Dumps information about the CPU(s)
http://www.etallen.com/cpuid.html
sudo dnf install cpuidcpuid 20260220-1.2
x86 CPU identification tool
sudo zypper install cpuidcpuid
sudo port install cpuid来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.