How To Install dmidecode on CentOS 8
Introduction
In this tutorial we learn how to install dmidecode
on CentOS 8.
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 8. In this tutorial we discuss both methods but you only need to choose one of method to install dmidecode.
Install dmidecode 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 dmidecode
using dnf
by running the following command:
sudo dnf -y install dmidecode
Install dmidecode 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 dmidecode
using yum
by running the following command:
sudo yum -y install dmidecode
How To Uninstall dmidecode on CentOS 8
To uninstall only the dmidecode
package we can use the following command:
sudo dnf remove dmidecode
dmidecode Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/6a33d8282f017cdc734610c78e2f60e88ad096
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/73a3c5e700428ac220b1711c47b5872b614eda
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/46f820b17ce251da584c0e4c311ca994f2f2b2
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/33369925486d1f5905b9e1b78dd808fbc56be7
/usr/sbin/biosdecode
/usr/sbin/dmidecode
/usr/sbin/ownership
/usr/sbin/vpddecode
/usr/share/doc/dmidecode
/usr/share/doc/dmidecode/AUTHORS
/usr/share/doc/dmidecode/NEWS
/usr/share/doc/dmidecode/README
/usr/share/licenses/dmidecode
/usr/share/licenses/dmidecode/LICENSE
/usr/share/man/man8/biosdecode.8.gz
/usr/share/man/man8/dmidecode.8.gz
/usr/share/man/man8/ownership.8.gz
/usr/share/man/man8/vpddecode.8.gz
References
Summary
In this tutorial we learn how to install dmidecode
on CentOS 8 using yum and dnf.