Install and Use CPUFetch to Show Detailed CPU Specs Across Platforms
CPUFetch is a cross‑platform command‑line utility that reports CPU architecture, model, microarchitecture, nanometer technology, frequency, core/thread count, AVX/FMA support, cache sizes, and peak performance, and this guide explains how to compile, install, run, and uninstall it on Ubuntu (and other OSes).
Overview
CPUFetch is a lightweight command‑line tool that gathers CPU architecture information on Linux, Windows, macOS and Android. It displays the vendor logo (e.g., Intel, AMD) along with a set of technical fields.
Supported Information
CPU name
Micro‑architecture
Semiconductor technology node (nm)
Maximum frequency
Core and thread count
Advanced Vector Extensions (AVX)
Fused Multiply‑Add (FMA)
L1, L2, L3 cache sizes
Peak performance
Installation on Ubuntu (build from source)
Install git if it is not already present: sudo apt install git Clone the repository: git clone https://github.com/Dr-Noob/cpufetch Enter the source directory and compile with make . The default Makefile invokes the following gcc command:
gcc -Wall -Wextra -Werror -pedantic -fstack-protector-all -std=c99 -DARCH_X86 -Wfloat-equal -Wshadow -Wpointer-arith \
src/common/main.c src/common/cpu.c src/common/udev.c src/common/printer.c \
src/common/args.c src/common/global.c src/x86/cpuid.c src/x86/apic.c \
src/x86/cpuid_asm.c src/x86/uarch.c -o cpufetchRun the tool from the build directory: ./cpufetch To make cpufetch available system‑wide, move the executable to /usr/local/bin :
sudo mv cpufetch /usr/local/bin/Uninstalling
Remove the cloned source directory: rm -rf cpufetch Delete the installed binary:
sudo rm /usr/local/bin/cpufetchExample Screenshots
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Liangxu Linux
Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
