In this guide we show you how to use a free and open source command line tool, cpufetch, to fetch your Laptop, Desktop, Server or Virtual Machine’s CPU architecture. The cpufetch tool works on macOS, Linux, and Windows operating systems. It supports x86, x86_64 (Intel and AMD) and ARM CPUs. In an x86 system, cpufetch works using the CPUID instruction, and using the MIDR register and Linux filesystem in an ARM system.

The cpufetch tool is able to pull low level information such as number of cores/threads/sockets(CPU topology), CPU microarchitecture, maximum frequency, semiconductor technology in nanometers, L1-L3 cache sizes, FMA, AVX, FMA and peak performance details. The Linux filesystem /sys/devices/system/cpu/ is used to fetch the number of cores and other information.

Building cpufetch from source – Linux / macOS

The easiest and quickest way to install cpufetch tool on Linux and macOS is by building from source.

Install git and development tools:

# CentOS / RHEL / Fedora
sudo yum -y install git
sudo yum -y group install "Development Tools"

# Ubuntu / Debian
sudo apt update
sudo apt install git build-essential -y

Confirm gcc and make tools are available

$ make --version
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO

Clone cpufetch git repository:

git clone

Switch to cpufetch source folder

cd cpufetch

Compile the application:


Run the command below to make the binary available in your PATH:

$ sudo make install
install -Dm755 "cpufetch"   "/usr/bin/cpufetch"
install -Dm644 "LICENSE"    "/usr/share/licenses/cpufetch-git/LICENSE"
install -Dm644 "cpufetch.8" "/usr/share/man/man8/cpufetch.8.gz"

Or move move the binary manually:

$ sudo mv ./cpufetch /usr/local/bin

Confirm cpufetch command is installed:

$ cpufetch --version
cpufetch v0.97 (x86_64 build)

Viewing usage help page:

$ cpufetch --help

Pulling your system CPU architecture information:

$ cpufetch

Sample Outputs are shown in attached screenshots.

macOS Intel CPU:

Digital Ocean Virtual Machine:


ARM Architecture:

Uninstalling cpufetch

To uninstall cpufetch, remove binary from the source folder:

rm -rf ~/cpufetch

And remove the executable file via command:

sudo rm /usr/local/bin/cpufetch
sudo rm /usr/bin/cpufetch

Enjoy using cpufetch and check more similar guides: