How To Install lm_sensors on a Fedora Linux 22 or above

Fig.02: Install lm_sensors using dnf

Fig.02: Install lm_sensors using dnf

To install lm-sensors on a Fedora Linux to monitor fan speed and cpu temp info, type:
$ sudo dnf install lm_sensors
Sample outputs:

[sudo] password for vivek: 
Last metadata expiration check performed 0:13:37 ago on Tue Sep 15 16:56:02 2015.
Dependencies resolved.
 Package                Arch          Version              Repository      Size
 lm_sensors             x86_64        3.3.5-6.fc22         updates        142 k
 lm_sensors-libs        x86_64        3.3.5-6.fc22         updates         45 k
Transaction Summary
Install  2 Packages
Total size: 187 k
Total download size: 142 k
Installed size: 470 k
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] lm_sensors-libs-3.3.5-6.fc22.x86_64.rpm: Already downloaded          
(2/2): lm_sensors-3.3.5-6.fc22.x86_64.rpm       4.4 kB/s |  54 kB     00:12    
Total                                           9.4 kB/s | 142 kB     00:15     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Installing  : lm_sensors-libs-3.3.5-6.fc22.x86_64                         1/2 
  Installing  : lm_sensors-3.3.5-6.fc22.x86_64                              2/2 
  Verifying   : lm_sensors-3.3.5-6.fc22.x86_64                              1/2 
  Verifying   : lm_sensors-libs-3.3.5-6.fc22.x86_64                         2/2 
  lm_sensors.x86_64 3.3.5-6.fc22       lm_sensors-libs.x86_64 3.3.5-6.fc22      

How to use to use lm_sensors on a Fedora Linux?

Once lm_sensors is installed you need to type:
$ sudo sensors-detect
Next hit ENTER key for everything it suggests. At the end it will ask you whether to add what it finds to /etc/modules. If you are happy with the output i.e. findings type “yes”.

To see the values for the hardware sensors detected on your motherboard / server, type:
$ sensors
Sample outputs:

Adapter: ISA adapter
Physical id 0:  +37.0?C  (high = +80.0?C, crit = +90.0?C)
Core 0:         +32.0?C  (high = +80.0?C, crit = +90.0?C)
Core 1:         +29.0?C  (high = +80.0?C, crit = +90.0?C)

Or use the following command:
$ sensors | less
$ sensors | egrep -i --color 'fan|cpu|temp'

Examples and usage: Linux Read CPU Temperature Sensor Chip Data Including Voltage and Fan Speed With lm-sensors