Install cpuid on Ubuntu 24.04

Install cpuid on Ubuntu 24.04

The cpuid is a command line tool that lets you query and display detailed CPU information directly from the CPUID instruction - without needing to write any code. This tutorial explains how to install cpuid on Ubuntu 24.04.

Install cpuid

Execute the command below to update the package lists:

sudo apt update

Install cpuid:

sudo apt install -y cpuid

Once installed, verify the version of cpuid with this command:

cpuid --version

Testing cpuid

To check that cpuid is working correctly, run the following command:

cpuid -1

This will display detailed information about the first logical CPU on the system. You'll see output including the vendor ID, supported features, processor family, model, cache details, and more - all decoded from the low-level CPUID instruction.

If you see output like this, cpuid is successfully installed and functioning:


CPU:
   vendor_id = "GenuineIntel"
   version information (1/eax):
      processor type  = primary processor (0)
      family          = 0x6 (6)
      model           = 0x7 (7)
      stepping id     = 0x1 (1)
      extended family = 0x0 (0)
      extended model  = 0xb (11)
      (family synth)  = 0x6 (6)
      (model synth)   = 0xb7 (183)
...

Uninstall cpuid

To completely uninstall cpuid along with its dependencies, run this command:

sudo apt purge --autoremove -y cpuid

Leave a Comment

Cancel reply

Your email address will not be published.