How To Install python2-elasticsearch6 on Rocky Linux 8

In this tutorial we learn how to install python2-elasticsearch6 on Rocky Linux 8. python2-elasticsearch6 is Python 2 Client for Elasticsearch

Introduction

In this tutorial we learn how to install python2-elasticsearch6 on Rocky Linux 8.

What is python2-elasticsearch6

Low level client for Elasticsearch. It’s goal is to provide common ground for all Elasticsearch-related code in Python. The client’s features include - Translating basic Python data types to and from JSON - Configurable automatic discovery of cluster nodes - Persistent connections - Load balancing (with pluggable selection strategy) across all available nodes - Failed connection penalization (time based - failed connections won’t be retried until a timeout is reached) - Thread safety - Pluggable architecture

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

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

sudo dnf -y install python2-elasticsearch6

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

sudo yum -y install python2-elasticsearch6

How To Uninstall python2-elasticsearch6 on Rocky Linux 8

To uninstall only the python2-elasticsearch6 package we can use the following command:

sudo dnf remove python2-elasticsearch6

python2-elasticsearch6 Package Contents on Rocky Linux 8

/usr/lib/python2.7/site-packages/elasticsearch6
/usr/lib/python2.7/site-packages/elasticsearch6-6.4.2-py2.7.egg-info
/usr/lib/python2.7/site-packages/elasticsearch6-6.4.2-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/elasticsearch6-6.4.2-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/elasticsearch6-6.4.2-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/elasticsearch6-6.4.2-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/elasticsearch6-6.4.2-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/elasticsearch6/__init__.py
/usr/lib/python2.7/site-packages/elasticsearch6/__init__.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/__init__.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client
/usr/lib/python2.7/site-packages/elasticsearch6/client/__init__.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/__init__.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/__init__.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/cat.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/cat.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/cat.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/cluster.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/cluster.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/cluster.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/indices.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/indices.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/indices.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/ingest.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/ingest.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/ingest.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/nodes.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/nodes.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/nodes.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/remote.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/remote.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/remote.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/snapshot.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/snapshot.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/snapshot.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/tasks.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/tasks.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/tasks.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/utils.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/utils.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/utils.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/__init__.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/__init__.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/__init__.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/deprecation.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/deprecation.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/deprecation.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/graph.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/graph.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/graph.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/license.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/license.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/license.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/migration.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/migration.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/migration.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/ml.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/ml.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/ml.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/monitoring.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/monitoring.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/monitoring.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/security.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/security.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/security.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/watcher.py
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/watcher.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/client/xpack/watcher.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/compat.py
/usr/lib/python2.7/site-packages/elasticsearch6/compat.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/compat.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/connection
/usr/lib/python2.7/site-packages/elasticsearch6/connection/__init__.py
/usr/lib/python2.7/site-packages/elasticsearch6/connection/__init__.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/connection/__init__.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/connection/base.py
/usr/lib/python2.7/site-packages/elasticsearch6/connection/base.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/connection/base.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/connection/http_requests.py
/usr/lib/python2.7/site-packages/elasticsearch6/connection/http_requests.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/connection/http_requests.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/connection/http_urllib3.py
/usr/lib/python2.7/site-packages/elasticsearch6/connection/http_urllib3.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/connection/http_urllib3.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/connection/pooling.py
/usr/lib/python2.7/site-packages/elasticsearch6/connection/pooling.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/connection/pooling.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/connection_pool.py
/usr/lib/python2.7/site-packages/elasticsearch6/connection_pool.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/connection_pool.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/exceptions.py
/usr/lib/python2.7/site-packages/elasticsearch6/exceptions.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/exceptions.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/helpers
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/__init__.py
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/__init__.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/__init__.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/actions.py
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/actions.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/actions.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/errors.py
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/errors.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/errors.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/test.py
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/test.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/helpers/test.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/serializer.py
/usr/lib/python2.7/site-packages/elasticsearch6/serializer.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/serializer.pyo
/usr/lib/python2.7/site-packages/elasticsearch6/transport.py
/usr/lib/python2.7/site-packages/elasticsearch6/transport.pyc
/usr/lib/python2.7/site-packages/elasticsearch6/transport.pyo
/usr/share/doc/python2-elasticsearch6
/usr/share/doc/python2-elasticsearch6/README
/usr/share/licenses/python2-elasticsearch6
/usr/share/licenses/python2-elasticsearch6/LICENSE

References

Summary

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