How To Install dmidecode on CentOS 7

In this tutorial we learn how to install dmidecode on CentOS 7. dmidecode is Tool to analyse BIOS DMI data

Introduction

In this tutorial we learn how to install dmidecode on CentOS 7.

What is dmidecode

dmidecode reports information about x86 & ia64 hardware as described in the system BIOS according to the SMBIOS/DMI standard. This information typically includes system manufacturer, model name, serial number, BIOS version, asset tag as well as a lot of other details of varying level of interest and reliability depending on the manufacturer. This will often include usage status for the CPU sockets, expansion slots (e.g. AGP, PCI, ISA) and memory module slots, and the list of I/O ports (e.g. serial, parallel, USB).

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

Install dmidecode on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install dmidecode

Install dmidecode on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install dmidecode

How To Uninstall dmidecode on CentOS 7

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

sudo dnf remove dmidecode

References

Summary

In this tutorial we learn how to install dmidecode on CentOS 7 using yum and dnf.