How To Install python3-prometheus_client on Rocky Linux 8

In this tutorial we learn how to install python3-prometheus_client on Rocky Linux 8. python3-prometheus_client is Python client for Prometheus

Introduction

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

What is python3-prometheus_client

Python client for Prometheus.

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

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

sudo dnf -y install python3-prometheus_client

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

sudo yum -y install python3-prometheus_client

How To Uninstall python3-prometheus_client on Rocky Linux 8

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

sudo dnf remove python3-prometheus_client

python3-prometheus_client Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/prometheus_client
/usr/lib/python3.6/site-packages/prometheus_client-0.9.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/prometheus_client-0.9.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/prometheus_client-0.9.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/prometheus_client-0.9.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/prometheus_client-0.9.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/prometheus_client-0.9.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/prometheus_client/__init__.py
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/asgi.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/asgi.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/context_managers.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/context_managers.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/core.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/core.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/exposition.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/exposition.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/gc_collector.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/gc_collector.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/metrics.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/metrics.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/metrics_core.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/metrics_core.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/mmap_dict.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/mmap_dict.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/multiprocess.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/multiprocess.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/parser.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/parser.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/platform_collector.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/platform_collector.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/process_collector.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/process_collector.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/registry.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/registry.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/samples.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/samples.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/values.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/__pycache__/values.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/asgi.py
/usr/lib/python3.6/site-packages/prometheus_client/bridge
/usr/lib/python3.6/site-packages/prometheus_client/bridge/__init__.py
/usr/lib/python3.6/site-packages/prometheus_client/bridge/__pycache__
/usr/lib/python3.6/site-packages/prometheus_client/bridge/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/bridge/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/bridge/__pycache__/graphite.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/bridge/__pycache__/graphite.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/bridge/graphite.py
/usr/lib/python3.6/site-packages/prometheus_client/context_managers.py
/usr/lib/python3.6/site-packages/prometheus_client/core.py
/usr/lib/python3.6/site-packages/prometheus_client/exposition.py
/usr/lib/python3.6/site-packages/prometheus_client/gc_collector.py
/usr/lib/python3.6/site-packages/prometheus_client/metrics.py
/usr/lib/python3.6/site-packages/prometheus_client/metrics_core.py
/usr/lib/python3.6/site-packages/prometheus_client/mmap_dict.py
/usr/lib/python3.6/site-packages/prometheus_client/multiprocess.py
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/__init__.py
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/__pycache__
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/__pycache__/exposition.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/__pycache__/exposition.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/__pycache__/parser.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/__pycache__/parser.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/exposition.py
/usr/lib/python3.6/site-packages/prometheus_client/openmetrics/parser.py
/usr/lib/python3.6/site-packages/prometheus_client/parser.py
/usr/lib/python3.6/site-packages/prometheus_client/platform_collector.py
/usr/lib/python3.6/site-packages/prometheus_client/process_collector.py
/usr/lib/python3.6/site-packages/prometheus_client/registry.py
/usr/lib/python3.6/site-packages/prometheus_client/samples.py
/usr/lib/python3.6/site-packages/prometheus_client/twisted
/usr/lib/python3.6/site-packages/prometheus_client/twisted/__init__.py
/usr/lib/python3.6/site-packages/prometheus_client/twisted/__pycache__
/usr/lib/python3.6/site-packages/prometheus_client/twisted/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/twisted/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/twisted/__pycache__/_exposition.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/prometheus_client/twisted/__pycache__/_exposition.cpython-36.pyc
/usr/lib/python3.6/site-packages/prometheus_client/twisted/_exposition.py
/usr/lib/python3.6/site-packages/prometheus_client/utils.py
/usr/lib/python3.6/site-packages/prometheus_client/values.py
/usr/share/doc/python3-prometheus_client
/usr/share/doc/python3-prometheus_client/MAINTAINERS.md
/usr/share/doc/python3-prometheus_client/README.md
/usr/share/licenses/python3-prometheus_client
/usr/share/licenses/python3-prometheus_client/LICENSE

References

Summary

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