{"id":74958,"date":"2026-03-16T18:51:22","date_gmt":"2026-03-16T15:51:22","guid":{"rendered":"https:\/\/cloudspinx.com\/?p=74958"},"modified":"2026-03-16T18:51:22","modified_gmt":"2026-03-16T15:51:22","slug":"fetch-cpu-information-on-linuxmacos-using-cpufetch","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/fetch-cpu-information-on-linuxmacos-using-cpufetch\/","title":{"rendered":"Fetch CPU Information on Linux|macOS using cpufetch"},"content":{"rendered":"\n<p>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&#8217;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 <strong>CPUID<\/strong> <strong>instruction<\/strong>, and using the <strong>MIDR register and Linux filesystem<\/strong> in an ARM system.<\/p>\n\n\n\n<p>The <strong>cpufetch<\/strong> 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&nbsp;<code>\/sys\/devices\/system\/cpu\/<\/code>&nbsp;is used to fetch the number of cores and other information.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Building cpufetch from source &#8211; Linux \/ macOS<\/h4>\n\n\n\n<p>The easiest and quickest way to install cpufetch tool on Linux and macOS is by building from source.<\/p>\n\n\n\n<p>Install git and development tools:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"># CentOS \/ RHEL \/ Fedora<\/mark><\/em><strong><em>\n<\/em><\/strong>sudo yum -y install git\nsudo yum -y group install \"Development Tools\"\n\n<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\"># Ubuntu \/ Debian<\/mark>\n<\/em>sudo apt update\nsudo apt install git build-essential -y<\/code><\/pre>\n\n\n\n<p>Confirm gcc and make tools are available<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">make --version<\/mark>\nGNU Make 4.2.1\nBuilt for x86_64-pc-linux-gnu\nCopyright (C) 1988-2016 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\n$<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\"> gcc --version<\/mark>\ngcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0\nCopyright (C) 2019 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions.  There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<\/code><\/pre>\n\n\n\n<p>Clone cpufetch git repository:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/Dr-Noob\/cpufetch<\/code><\/pre>\n\n\n\n<p>Switch to cpufetch source folder<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd cpufetch<\/code><\/pre>\n\n\n\n<p>Compile the application:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<p>Run the command below to make the binary available in your PATH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">sudo make install<\/mark>\ninstall -Dm755 \"cpufetch\"   \"\/usr\/bin\/cpufetch\"\ninstall -Dm644 \"LICENSE\"    \"\/usr\/share\/licenses\/cpufetch-git\/LICENSE\"\ninstall -Dm644 \"cpufetch.8\" \"\/usr\/share\/man\/man8\/cpufetch.8.gz\"<\/code><\/pre>\n\n\n\n<p>Or move move the binary manually:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mv .\/cpufetch \/usr\/local\/bin<\/code><\/pre>\n\n\n\n<p>Confirm <em>cpufetch<\/em> command is installed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">cpufetch --version<\/mark>\ncpufetch v0.97 (x86_64 build)<\/code><\/pre>\n\n\n\n<p>Viewing usage help page:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cpufetch --help<\/code><\/pre>\n\n\n\n<p>Pulling your system CPU architecture information:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cpufetch<\/code><\/pre>\n\n\n\n<p>Sample Outputs are shown in attached screenshots.<\/p>\n\n\n\n<p><strong>macOS Intel CPU:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/04\/Fetch-CPU-Architecture-Linux-macOS-using-cpufetch-00.png\" alt=\"\" class=\"wp-image-17511\" title=\"\"><\/figure>\n\n\n\n<p><strong>Digital Ocean Virtual Machine:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/04\/Fetch-CPU-Architecture-Linux-macOS-using-cpufetch-01.png\" alt=\"\" class=\"wp-image-17512\" title=\"\"><\/figure>\n\n\n\n<p><strong>AMD CPU<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/04\/Fetch-CPU-Architecture-Linux-macOS-using-cpufetch-02.png\" alt=\"\" class=\"wp-image-17514\" title=\"\"><\/figure>\n\n\n\n<p><strong>ARM Architecture:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/04\/Fetch-CPU-Architecture-Linux-macOS-using-cpufetch-03.png\" alt=\"\" class=\"wp-image-17516\" title=\"\"><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2021\/04\/Fetch-CPU-Architecture-Linux-macOS-using-cpufetch-04.png\" alt=\"\" class=\"wp-image-17518\" title=\"\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Uninstalling cpufetch<\/h2>\n\n\n\n<p>To uninstall cpufetch, remove binary from the source folder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf ~\/cpufetch<\/code><\/pre>\n\n\n\n<p>And remove the executable file via command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm \/usr\/local\/bin\/cpufetch\nsudo rm \/usr\/bin\/cpufetch<\/code><\/pre>\n\n\n\n<p>Enjoy using cpufetch and  check more similar guides:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/computingforgeeks.com\/configure-nfs-server-on-arch-manjaro-garuda-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure NFS Server on Arch | Manjaro | Garuda Linux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/install-microk8s-kubernetes-cluster-on-archmanjarogaruda\/\">Install MicroK8s Kubernetes Cluster on Arch |Manjaro | Garuda<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Recommended Linux Books&nbsp; to read:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/computingforgeeks.com\/5-best-computer-programming-books-for-beginners\/\">Best Linux Books for Beginners &amp; Experts<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/best-linux-kernel-programming-books\/\">Best Linux Kernel Programming Books<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/free-books-to-learn-linux-bash-scripting\/\">Best Linux Bash Scripting Books<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/top-rhcsa-rhce-certification-study-books\/\">Top RHCSA \/ RHCE Certification Study Books<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/best-rated-aws-cloud-certifications-preparation-books\/\">Best Top Rated CompTIA A+ Certification Books<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/best-lpic-1-and-lpic-2-certification-study-books\/\">Best LPIC-1 and LPIC-2 certification study books<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;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 &#8230; <a title=\"Fetch CPU Information on Linux|macOS using cpufetch\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/fetch-cpu-information-on-linuxmacos-using-cpufetch\/\" aria-label=\"Read more about Fetch CPU Information on Linux|macOS using cpufetch\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":75062,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299,47,50,320,9275],"tags":[39353],"class_list":["post-74958","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-linux","category-linux-tutorials","category-macos","category-terminal","tag-cpufetch"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/74958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=74958"}],"version-history":[{"count":0,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/74958\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/75062"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=74958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=74958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=74958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}