How To Install Lscpu On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Lscpu On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

lscpu

Displays information about the CPU architecture.

Maintainer: LaMont Jones


Section: utils

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:
lscpuClick to copy
Display information in a table:
lscpu --extendedClick to copy
Display only information about offline CPUs in a table:
lscpu --extended --offlineClick 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.