# Install libcpuid with Homebrew, apk, apt, dnf, Nix, pacman, zypper

Small C library for x86 CPU detection and feature extraction. Version 0.8.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:libcpuid
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libcpuid
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libcpuid
```

  Evidence: Alpine Linux edge package indexes: libcpuid from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install cpuidtool
```

  Evidence: Debian stable package indexes: cpuidtool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install libcpuid
```

  Evidence: Fedora Rawhide package metadata: libcpuid from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libcpuid
```

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

- pacman (92%):

```sh
sudo pacman -S libcpuid
```

  Evidence: Arch Linux sync databases: libcpuid from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libcpuid-devel
```

  Evidence: openSUSE Tumbleweed package metadata: libcpuid-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:libcpuid
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libcpuid>
- **Version:** 0.8.1
- **Source summary:** Small C library for x86 CPU detection and feature extraction
- **Homepage:** <https://github.com/anrieff/libcpuid>
- **Repository:** <https://github.com/anrieff/libcpuid>
- **Upstream docs:** <https://anrieff.github.io/libcpuid/group__libcpuid.html>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/anrieff/libcpuid/archive/refs/tags/v0.8.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cpuid_tool (cli)
- cpuid_tool (alias)

## Build dependencies

- autoconf
- automake
- libtool

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.8.1
- Local data: ok
- Upstream repository: https://github.com/anrieff/libcpuid
- Upstream latest detected: v0.8.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

LibCPUID is a C library and tool for identifying x86 CPUs and extracting CPUID-derived feature information. It wraps low-level CPUID and RDTSC access behind a portable API for Windows, Linux, and macOS.

### Project history

The official SourceForge project page describes LibCPUID as a small C library for x86 CPU detection and feature extraction, including vendor, model, brand string, code name, core counts, cache sizes, clock information, instruction-set checks, CPUID, and RDTSC.

The Doxygen introduction records version 0.1.0 on 2008-10-15 as an initial adaptation from wxfractgui sources. Early releases added Intel Core i7 topology fields, Win32 MSR-reading support, improved CPU-clock measurement, AMD Bulldozer support, Ivy Bridge support, and RdRand detection.

### Adoption history

LibCPUID fits the distribution niche for programs that need CPU model and feature detection without carrying their own CPUID tables. It is packaged by Homebrew, Debian and Ubuntu as `cpuidtool`, Fedora-family distributions, Arch, Alpine, Nix, and openSUSE-derived systems.

### How it is used

Developers link against libcpuid to ask whether a processor supports features such as SSE2, 3DNow!, RdRand, or vendor/model-specific capabilities. Users can also run the packaged `cpuid_tool` executable to inspect CPU information from the command line.

### Why package nerds care

LibCPUID is a classic system-library package: tiny surface area, architecture-specific knowledge, and a constant need for updates as Intel and AMD ship new models. It is valuable because every downstream project does not need to parse raw CPUID leaves and maintain marketing names itself.

### Timeline

- 2008-10-15: 0.1.0 released as an adaptation from wxfractgui sources.
- 2009-07-06: 0.1.1 added fields for Intel Core i7 topology enumeration.
- 2009-09-26: 0.1.2 added Win32 MSR-reading support.
- 2010-04-20: 0.1.3 improved CPU clock measurements.
- 2011-10-11: 0.2.0 added AMD Bulldozer support and changed `cpu_id_t` size.
- 2012-05-26: 0.2.1 added Ivy Bridge and RdRand detection.
- 2015-11-04: 0.2.2 added support for newer processors up to Haswell and Vishera.

### Related projects

- Related projects and interfaces include wxfractgui, the x86 CPUID instruction, RDTSC, MSR access, `cpuid_tool`, and CPU feature dispatch code in compilers and performance-sensitive libraries.

### Sources

- <https://formulae.brew.sh/formula/libcpuid>
- <https://github.com/anrieff/libcpuid>
- <https://libcpuid.sourceforge.net/>
- <https://libcpuid.sourceforge.net/doxy/index.html>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libcpuid
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** arch
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - cpuidtool - 0.7.1+repack1-0.2: normalized package name match | Debian stable package indexes: cpuidtool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C library for x86/x86_64 CPU detection and feature extraction (tool) | https://github.com/anrieff/libcpuid
- Debian apt - libcpuid-dev - 0.7.1+repack1-0.2: normalized package name match | Debian stable package indexes: libcpuid-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C library for x86/x86_64 CPU detection and feature extraction (headers) | https://github.com/anrieff/libcpuid
- Debian apt - libcpuid17 - 0.7.1+repack1-0.2: normalized package name match | Debian stable package indexes: libcpuid17 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C library for x86/x86_64 CPU detection and feature extraction (shared lib) | https://github.com/anrieff/libcpuid
- Nix - libcpuid: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libcpuid/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cpuidtool - 0.6.4+repack1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: cpuidtool from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C library for x86/x86_64 CPU detection and feature extraction (tool) | https://github.com/anrieff/libcpuid
- Ubuntu apt - libcpuid-dev - 0.6.4+repack1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcpuid-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C library for x86/x86_64 CPU detection and feature extraction (headers) | https://github.com/anrieff/libcpuid
- Ubuntu apt - libcpuid16 - 0.6.4+repack1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcpuid16 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C library for x86/x86_64 CPU detection and feature extraction (shared lib) | https://github.com/anrieff/libcpuid
- apk - libcpuid - 0.8.0-r0: normalized package name match | Alpine Linux edge package indexes: libcpuid from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C library for x86 CPU detection and feature extraction | https://github.com/anrieff/libcpuid
- apk - libcpuid-dev - 0.8.0-r0: normalized package name match | Alpine Linux edge package indexes: libcpuid-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C library for x86 CPU detection and feature extraction (development files) | https://github.com/anrieff/libcpuid
- apk - libcpuid-tool - 0.8.0-r0: normalized package name match | Alpine Linux edge package indexes: libcpuid-tool from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C library for x86 CPU detection and feature extraction (CLI tool) | https://github.com/anrieff/libcpuid
- dnf - libcpuid - 0.8.1-6.fc45: normalized package name match | Fedora Rawhide package metadata: libcpuid from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Provides CPU identification for x86 and ARM | https://github.com/anrieff/libcpuid
- dnf - libcpuid-devel - 0.8.1-6.fc45: normalized package name match | Fedora Rawhide package metadata: libcpuid-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libcpuid | https://github.com/anrieff/libcpuid
- dnf - libcpuid-static - 0.8.1-6.fc45: normalized package name match | Fedora Rawhide package metadata: libcpuid-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Static development files for libcpuid | https://github.com/anrieff/libcpuid
- dnf - python3-libcpuid - 0.8.1-6.fc45: normalized package name match | Fedora Rawhide package metadata: python3-libcpuid from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Python bindings for the libcpuid library | https://github.com/anrieff/libcpuid
- pacman - libcpuid - 0.8.1-1: normalized package name match | Arch Linux sync databases: libcpuid from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A small C library for x86 CPU detection and feature extraction | http://libcpuid.sourceforge.net
- zypper - libcpuid-devel - 0.8.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: libcpuid-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for libcpuid | https://github.com/anrieff/libcpuid


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [cyme](https://www.automicvault.com/pkg/brew/cyme/) - Shares av.db curated category or tags: cli, hardware, system.
- [digitemp](https://www.automicvault.com/pkg/brew/digitemp/) - Shares av.db curated category or tags: cli, hardware, system.
- [gfxutil](https://www.automicvault.com/pkg/brew/gfxutil/) - Shares av.db curated category or tags: cli, hardware, system.
- [hwloc](https://www.automicvault.com/pkg/brew/hwloc/) - Shares av.db curated category or tags: cli, hardware, library, system.
- [libevdev](https://www.automicvault.com/pkg/brew/libevdev/) - Shares av.db curated category or tags: cli, hardware, system.
- [liquidctl](https://www.automicvault.com/pkg/brew/liquidctl/) - Shares av.db curated category or tags: cli, hardware, system.
- [lsusb](https://www.automicvault.com/pkg/brew/lsusb/) - Shares av.db curated category or tags: cli, hardware, system.
- [nvtop](https://www.automicvault.com/pkg/brew/nvtop/) - Shares av.db curated category or tags: cli, hardware, system.
- [cpuid](https://www.automicvault.com/pkg/brew/cpuid/) - Local package facts share a topical domain. Shared terms: cli, cpu, cpuid, detection, feature.
- [cpu_features](https://www.automicvault.com/pkg/brew/cpu-features/) - 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/libcpuid.yml](https://github.com/automic-vault/db/blob/main/combined/libcpuid.yml)


## Sources

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