How To Install digitemp on CentOS 8

digitemp is Dallas Semiconductor 1-wire device reading console application

Introduction

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

What is digitemp

DigiTemp is a simple to use console application for reading values from Dallas Semiconductor 1-wire devices. Its main use is for reading temperature sensors, but it also reads counters and understands the 1-wire hubs with devices on different branches of the network. DigiTemp now supports the following 1-wire temperature sensors the DS2438 Smart Battery Monitor, DS2422 and DS2423 Counters, DS2409 MicroLAN Coupler (used in 1-wire hubs) and the AAG TAI-8540 humidity sensor.

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

Install digitemp 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 digitemp using dnf by running the following command:

sudo dnf -y install digitemp

Install digitemp 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 digitemp using yum by running the following command:

sudo yum -y install digitemp

How To Uninstall digitemp on CentOS 8

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

sudo dnf remove digitemp

digitemp Package Contents on CentOS 8

/usr/bin/digitemp_DS2490
/usr/bin/digitemp_DS9097
/usr/bin/digitemp_DS9097U
/usr/lib/.build-id
/usr/lib/.build-id/19
/usr/lib/.build-id/19/2b93565918ae8d1d5bba4f25cc91f7a93e001d
/usr/lib/.build-id/68
/usr/lib/.build-id/68/b6399cf416d986b08dada9004b49d65af882c4
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/0662722ee1016b6862472fa217272b77af0243
/usr/share/doc/digitemp
/usr/share/doc/digitemp/CREDITS
/usr/share/doc/digitemp/ChangeLog
/usr/share/doc/digitemp/DS9097_Schematic.gif
/usr/share/doc/digitemp/FAQ
/usr/share/doc/digitemp/README
/usr/share/doc/digitemp/TODO
/usr/share/doc/digitemp/dthowto.txt
/usr/share/licenses/digitemp
/usr/share/licenses/digitemp/COPYING
/usr/share/licenses/digitemp/COPYRIGHT
/usr/share/man/man1/digitemp.1.gz

References

Summary

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