Install Smartctl On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS
smartctl
Install smartctl
-
Debian
apt-get install smartmontoolsClick to copy -
Ubuntu
apt-get install smartmontoolsClick to copy -
Alpine OS
apk add smartmontoolsClick to copy -
Arch Linux
pacman -S smartmontoolsClick to copy -
Kali Linux
apt-get install smartmontoolsClick to copy -
Fedora
dnf install smartmontools-1Click to copy -
Raspbian
apt-get install smartmontoolsClick to copy -
macOS
brew install smartmontoolsClick to copy
View a disk's SMART data and other information. See https://en.wikipedia.org/wiki/S.M.A.R.T for more information.
How to use smartctl?
Below are few example commands for smartctl that you can use in the terminal.
View SMART health summary:sudo smartctl --health /dev/sdaClick to copyView device information:sudo smartctl --info /dev/sdaClick to copyBegin a short self-test:sudo smartctl --test short /dev/sdaClick to copyView current/last self-test status and other SMART capabilities:sudo smartctl --capabilities /dev/sdaClick to copyView SMART self-test log (if supported):sudo smartctl --log selftest /dev/sdaClick to copy
Installing smartctl command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of smartctl 2026 package in your OS.




