How To Install python3-distroinfo on Rocky Linux 8

In this tutorial we learn how to install python3-distroinfo on Rocky Linux 8. python3-distroinfo is Parsing and querying distribution metadata stored in text/YAML files

Introduction

In this tutorial we learn how to install python3-distroinfo on Rocky Linux 8.

What is python3-distroinfo

distroinfo is a python module for parsing, validating and querying distribution/packaging metadata stored in human readable and review-able text/YAML files. distroinfo is a generic (re)implementation of rdoinfo parser which proved well suited for the task of interfacing with distribution metadata in a human friendly way. If you consider code reviews human friendly, that is.

We can use yum or dnf to install python3-distroinfo on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-distroinfo.

Install python3-distroinfo on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-distroinfo

Install python3-distroinfo on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-distroinfo using yum by running the following command:

sudo yum -y install python3-distroinfo

How To Uninstall python3-distroinfo on Rocky Linux 8

To uninstall only the python3-distroinfo package we can use the following command:

sudo dnf remove python3-distroinfo

python3-distroinfo Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/distroinfo
/usr/lib/python3.6/site-packages/distroinfo-0.4.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/distroinfo-0.4.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/distroinfo-0.4.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/distroinfo-0.4.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/distroinfo-0.4.0-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/distroinfo-0.4.0-py3.6.egg-info/pbr.json
/usr/lib/python3.6/site-packages/distroinfo-0.4.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/distroinfo/__init__.py
/usr/lib/python3.6/site-packages/distroinfo/__pycache__
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/exception.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/exception.cpython-36.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/fetch.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/fetch.cpython-36.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/helpers.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/helpers.cpython-36.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/info.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/info.cpython-36.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/parse.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/parse.cpython-36.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/query.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/query.cpython-36.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/repoman.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/distroinfo/__pycache__/repoman.cpython-36.pyc
/usr/lib/python3.6/site-packages/distroinfo/exception.py
/usr/lib/python3.6/site-packages/distroinfo/fetch.py
/usr/lib/python3.6/site-packages/distroinfo/helpers.py
/usr/lib/python3.6/site-packages/distroinfo/info.py
/usr/lib/python3.6/site-packages/distroinfo/parse.py
/usr/lib/python3.6/site-packages/distroinfo/query.py
/usr/lib/python3.6/site-packages/distroinfo/repoman.py
/usr/share/doc/python3-distroinfo
/usr/share/doc/python3-distroinfo/AUTHORS
/usr/share/doc/python3-distroinfo/README.rst
/usr/share/licenses/python3-distroinfo
/usr/share/licenses/python3-distroinfo/LICENSE

References

Summary

In this tutorial we learn how to install python3-distroinfo on Rocky Linux 8 using yum and dnf.