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.
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 installBasic 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
doneColor 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,0The 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.
Source: Linux就该这么学
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.
Open Source Linux
Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.
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.
