How To Install Lscpu On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Install lscpu
-
Debian
apt-get install util-linux
Click to copy -
Ubuntu
apt-get install util-linux
Click to copy -
Alpine OS
apk add util-linux
Click to copy -
Arch Linux
pacman -S util-linux
Click to copy -
Kali Linux
apt-get install util-linux
Click to copy -
CentOS
yum install util-linux
Click to copy -
Fedora
dnf install util-linux
Click to copy -
Raspbian
apt-get install util-linux
Click to copy -
macOS
brew install util-linux
Click to copy
Displays information about the CPU architecture.
How to use lscpu?
Below are few example commands for lscpu that you can use in the terminal.
Display information about all CPUs:lscpu
Click to copyDisplay information in a table:lscpu --extended
Click to copyDisplay only information about offline CPUs in a table:lscpu --extended --offline
Click to copy
Installation of latest lscpu command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2024 latest package from the repository and install it in your computer/server.