How To Install lm_sensors on Rocky Linux 8

In this tutorial we learn how to install lm_sensors on Rocky Linux 8. lm_sensors is Hardware monitoring tools

Introduction

In this tutorial we learn how to install lm_sensors on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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 Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove lm_sensors

lm_sensors Package Contents on Rocky Linux 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/55
/usr/lib/.build-id/55/51f232a560ab5ff06887b9576f1a981638eea4
/usr/lib/.build-id/98
/usr/lib/.build-id/98/9c79eca1ac643374d8b75a4e22d227d6978cbc
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/0bfbc1eab24e8f46a6a1f81ccad9151e52be05
/usr/lib/.build-id/f0/5f9e1d421a2d5264e5339e69f55c957d9c13e0
/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 Rocky Linux 8 using yum and dnf.