Fundamentals 4 min read

How to Install and Use Cpufetch on CentOS 8: A Complete Guide

Learn how to install the Cpufetch command-line utility on CentOS 8, compile it from source, explore its usage syntax, customize display styles and colors, and leverage options like -s, -v, and -d to retrieve detailed CPU architecture information.

Open Source Linux
Open Source Linux
Open Source Linux
How to Install and Use Cpufetch on CentOS 8: A Complete Guide

What is Cpufetch

Cpufetch is a lightweight command-line tool that displays CPU architecture information. It runs on Linux, Windows, macOS and Android, but Linux is recommended.

System Environment

CentOS 8

Installing Cpufetch on CentOS 8

First install the required packages: yum -y install git make gcc gcc-c++ Clone the source repository: git clone https://github.com/Dr-Noob/cpufetch Build and install:

cd cpufetch
make && make install
Cpufetch output example
Cpufetch output example

Basic Usage

Run cpufetch or cpufetch [option] to display CPU details.

Options

-s

: select output style (fancy, legacy, retro). -v: show additional version information. -d: print debugging information.

Changing Output Style

Example loop to cycle through styles:

#!/bin/bash
for s in fancy retro legacy; do
    clear
    cpufetch -s "$s"
    sleep 1
done
Cpufetch style loop demo
Cpufetch style loop demo

Color Customization

Use -c with predefined schemes (intel, amd, arm) or provide custom RGB values:

cpufetch --color 70,130,180:230,230,250:0,100,0:255,69,0

The custom format is R,G,B:R,G,B:R,G,B:R,G,B, where the first two colors are for the CPU logo and the last two for text.

Cpufetch color scheme example
Cpufetch color scheme example
Source: Linux就该这么学
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Installationcommand-lineCentOS8cpu infocpufetch
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.