How To Install lm_sensors on CentOS 8

lm_sensors is Hardware monitoring tools

Introduction

In this tutorial we learn how to install lm_sensors on CentOS 8.

What is lm_sensors

The lm_sensors package includes a collection of modules for general SMBus access and hardware monitoring.

We can use yum or dnf to install lm_sensors on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install lm_sensors.

Install lm_sensors on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install lm_sensors using dnf by running the following command:

sudo dnf -y install lm_sensors

Install lm_sensors on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install lm_sensors using yum by running the following command:

sudo yum -y install lm_sensors

How To Uninstall lm_sensors on CentOS 8

To uninstall only the lm_sensors package we can use the following command:

sudo dnf remove lm_sensors

lm_sensors Package Contents on CentOS 8

/etc/sensors.d
/etc/sensors3.conf
/etc/sysconfig/lm_sensors
/usr/bin/sensors
/usr/bin/sensors-conf-convert
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/6e8179522a1e4a258b5d95f01a0a3b4d26f69a
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/2865f95807d2811de11e071d06cfcf974c42c0
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/2c23aa7668f7f6a2f173d3fa77e3d949d7c6b8
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/45d79823d41f134051bf564a9c1cd87c25e6ea
/usr/lib/systemd/system/fancontrol.service
/usr/lib/systemd/system/lm_sensors.service
/usr/libexec/lm_sensors
/usr/libexec/lm_sensors/lm_sensors-modprobe-r-wrapper
/usr/libexec/lm_sensors/lm_sensors-modprobe-wrapper
/usr/sbin/fancontrol
/usr/sbin/isadump
/usr/sbin/isaset
/usr/sbin/pwmconfig
/usr/sbin/sensors-detect
/usr/share/doc/lm_sensors
/usr/share/doc/lm_sensors/CHANGES
/usr/share/doc/lm_sensors/CONTRIBUTORS
/usr/share/doc/lm_sensors/README
/usr/share/doc/lm_sensors/README.initscripts
/usr/share/doc/lm_sensors/doc
/usr/share/doc/lm_sensors/doc/developers
/usr/share/doc/lm_sensors/doc/developers/applications
/usr/share/doc/lm_sensors/doc/developers/lm_sensors.lsm
/usr/share/doc/lm_sensors/doc/developers/makefiles
/usr/share/doc/lm_sensors/doc/developers/release_checklist
/usr/share/doc/lm_sensors/doc/developers/smbus_company_id
/usr/share/doc/lm_sensors/doc/donations
/usr/share/doc/lm_sensors/doc/fan-divisors
/usr/share/doc/lm_sensors/doc/fancontrol.txt
/usr/share/doc/lm_sensors/doc/git
/usr/share/doc/lm_sensors/doc/libsensors-API.txt
/usr/share/doc/lm_sensors/doc/progs
/usr/share/doc/lm_sensors/doc/temperature-sensors
/usr/share/doc/lm_sensors/doc/vid
/usr/share/doc/lm_sensors/fancontrol.init
/usr/share/licenses/lm_sensors
/usr/share/licenses/lm_sensors/COPYING
/usr/share/man/man1/sensors.1.gz
/usr/share/man/man5/sensors.conf.5.gz
/usr/share/man/man5/sensors3.conf.5.gz
/usr/share/man/man8/fancontrol.8.gz
/usr/share/man/man8/isadump.8.gz
/usr/share/man/man8/isaset.8.gz
/usr/share/man/man8/pwmconfig.8.gz
/usr/share/man/man8/sensors-conf-convert.8.gz
/usr/share/man/man8/sensors-detect.8.gz

References

Summary

In this tutorial we learn how to install lm_sensors on CentOS 8 using yum and dnf.