How To Install python-dmidecode.x86_64 on Amazon Linux 2

In this tutorial we learn how to install python-dmidecode.x86_64 in Amazon Linux 2. python-dmidecode.x86_64 is Python module to access DMI data

Introduction

In this tutorial we learn how to install python-dmidecode.x86_64 on Amazon Linux 2.

What is python-dmidecode.x86_64

python-dmidecode is a python extension module that uses the code-base of the ‘dmidecode’ utility, and presents the data as python data structures or as XML data using libxml2.

We can use yum to install python-dmidecode.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-dmidecode.x86_64.

Install python-dmidecode.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python-dmidecode.x86_64

How To Uninstall python-dmidecode.x86_64 on Amazon Linux 2

To uninstall only the python-dmidecode.x86_64 package we can use the following command:

sudo yum remove python-dmidecode.x86_64

python-dmidecode.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/dmidecode.py
/usr/lib64/python2.7/site-packages/dmidecode.pyc
/usr/lib64/python2.7/site-packages/dmidecode.pyo
/usr/lib64/python2.7/site-packages/dmidecodemod.so
/usr/lib64/python2.7/site-packages/python_dmidecode-3.12.2-py2.7.egg-info
/usr/share/doc/python-dmidecode-3.12.2
/usr/share/doc/python-dmidecode-3.12.2/AUTHORS
/usr/share/doc/python-dmidecode-3.12.2/AUTHORS.upstream
/usr/share/doc/python-dmidecode-3.12.2/LICENSE
/usr/share/doc/python-dmidecode-3.12.2/README
/usr/share/doc/python-dmidecode-3.12.2/README.upstream
/usr/share/python-dmidecode
/usr/share/python-dmidecode/pymap.xml

References

Summary

In this tutorial we learn how to install python-dmidecode.x86_64 on Amazon Linux 2 using yum.