How To Install python2-pymongo on Rocky Linux 8

In this tutorial we learn how to install python2-pymongo on Rocky Linux 8. python2-pymongo is Python driver for MongoDB

Introduction

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

What is python2-pymongo

The Python driver for MongoDB. This package contains the python2 version of this module.

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

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

sudo dnf -y install python2-pymongo

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

sudo yum -y install python2-pymongo

How To Uninstall python2-pymongo on Rocky Linux 8

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

sudo dnf remove python2-pymongo

python2-pymongo Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/78
/usr/lib/.build-id/78/42108c27294d90c4807fccaed3795b5355ca6c
/usr/lib64/python2.7/site-packages/pymongo
/usr/lib64/python2.7/site-packages/pymongo-3.6.1-py2.7.egg-info
/usr/lib64/python2.7/site-packages/pymongo-3.6.1-py2.7.egg-info/PKG-INFO
/usr/lib64/python2.7/site-packages/pymongo-3.6.1-py2.7.egg-info/SOURCES.txt
/usr/lib64/python2.7/site-packages/pymongo-3.6.1-py2.7.egg-info/dependency_links.txt
/usr/lib64/python2.7/site-packages/pymongo-3.6.1-py2.7.egg-info/requires.txt
/usr/lib64/python2.7/site-packages/pymongo-3.6.1-py2.7.egg-info/top_level.txt
/usr/lib64/python2.7/site-packages/pymongo/__init__.py
/usr/lib64/python2.7/site-packages/pymongo/__init__.pyc
/usr/lib64/python2.7/site-packages/pymongo/__init__.pyo
/usr/lib64/python2.7/site-packages/pymongo/_cmessage.so
/usr/lib64/python2.7/site-packages/pymongo/auth.py
/usr/lib64/python2.7/site-packages/pymongo/auth.pyc
/usr/lib64/python2.7/site-packages/pymongo/auth.pyo
/usr/lib64/python2.7/site-packages/pymongo/bulk.py
/usr/lib64/python2.7/site-packages/pymongo/bulk.pyc
/usr/lib64/python2.7/site-packages/pymongo/bulk.pyo
/usr/lib64/python2.7/site-packages/pymongo/change_stream.py
/usr/lib64/python2.7/site-packages/pymongo/change_stream.pyc
/usr/lib64/python2.7/site-packages/pymongo/change_stream.pyo
/usr/lib64/python2.7/site-packages/pymongo/client_options.py
/usr/lib64/python2.7/site-packages/pymongo/client_options.pyc
/usr/lib64/python2.7/site-packages/pymongo/client_options.pyo
/usr/lib64/python2.7/site-packages/pymongo/client_session.py
/usr/lib64/python2.7/site-packages/pymongo/client_session.pyc
/usr/lib64/python2.7/site-packages/pymongo/client_session.pyo
/usr/lib64/python2.7/site-packages/pymongo/collation.py
/usr/lib64/python2.7/site-packages/pymongo/collation.pyc
/usr/lib64/python2.7/site-packages/pymongo/collation.pyo
/usr/lib64/python2.7/site-packages/pymongo/collection.py
/usr/lib64/python2.7/site-packages/pymongo/collection.pyc
/usr/lib64/python2.7/site-packages/pymongo/collection.pyo
/usr/lib64/python2.7/site-packages/pymongo/command_cursor.py
/usr/lib64/python2.7/site-packages/pymongo/command_cursor.pyc
/usr/lib64/python2.7/site-packages/pymongo/command_cursor.pyo
/usr/lib64/python2.7/site-packages/pymongo/common.py
/usr/lib64/python2.7/site-packages/pymongo/common.pyc
/usr/lib64/python2.7/site-packages/pymongo/common.pyo
/usr/lib64/python2.7/site-packages/pymongo/cursor.py
/usr/lib64/python2.7/site-packages/pymongo/cursor.pyc
/usr/lib64/python2.7/site-packages/pymongo/cursor.pyo
/usr/lib64/python2.7/site-packages/pymongo/cursor_manager.py
/usr/lib64/python2.7/site-packages/pymongo/cursor_manager.pyc
/usr/lib64/python2.7/site-packages/pymongo/cursor_manager.pyo
/usr/lib64/python2.7/site-packages/pymongo/database.py
/usr/lib64/python2.7/site-packages/pymongo/database.pyc
/usr/lib64/python2.7/site-packages/pymongo/database.pyo
/usr/lib64/python2.7/site-packages/pymongo/errors.py
/usr/lib64/python2.7/site-packages/pymongo/errors.pyc
/usr/lib64/python2.7/site-packages/pymongo/errors.pyo
/usr/lib64/python2.7/site-packages/pymongo/helpers.py
/usr/lib64/python2.7/site-packages/pymongo/helpers.pyc
/usr/lib64/python2.7/site-packages/pymongo/helpers.pyo
/usr/lib64/python2.7/site-packages/pymongo/ismaster.py
/usr/lib64/python2.7/site-packages/pymongo/ismaster.pyc
/usr/lib64/python2.7/site-packages/pymongo/ismaster.pyo
/usr/lib64/python2.7/site-packages/pymongo/max_staleness_selectors.py
/usr/lib64/python2.7/site-packages/pymongo/max_staleness_selectors.pyc
/usr/lib64/python2.7/site-packages/pymongo/max_staleness_selectors.pyo
/usr/lib64/python2.7/site-packages/pymongo/message.py
/usr/lib64/python2.7/site-packages/pymongo/message.pyc
/usr/lib64/python2.7/site-packages/pymongo/message.pyo
/usr/lib64/python2.7/site-packages/pymongo/mongo_client.py
/usr/lib64/python2.7/site-packages/pymongo/mongo_client.pyc
/usr/lib64/python2.7/site-packages/pymongo/mongo_client.pyo
/usr/lib64/python2.7/site-packages/pymongo/mongo_replica_set_client.py
/usr/lib64/python2.7/site-packages/pymongo/mongo_replica_set_client.pyc
/usr/lib64/python2.7/site-packages/pymongo/mongo_replica_set_client.pyo
/usr/lib64/python2.7/site-packages/pymongo/monitor.py
/usr/lib64/python2.7/site-packages/pymongo/monitor.pyc
/usr/lib64/python2.7/site-packages/pymongo/monitor.pyo
/usr/lib64/python2.7/site-packages/pymongo/monitoring.py
/usr/lib64/python2.7/site-packages/pymongo/monitoring.pyc
/usr/lib64/python2.7/site-packages/pymongo/monitoring.pyo
/usr/lib64/python2.7/site-packages/pymongo/monotonic.py
/usr/lib64/python2.7/site-packages/pymongo/monotonic.pyc
/usr/lib64/python2.7/site-packages/pymongo/monotonic.pyo
/usr/lib64/python2.7/site-packages/pymongo/network.py
/usr/lib64/python2.7/site-packages/pymongo/network.pyc
/usr/lib64/python2.7/site-packages/pymongo/network.pyo
/usr/lib64/python2.7/site-packages/pymongo/operations.py
/usr/lib64/python2.7/site-packages/pymongo/operations.pyc
/usr/lib64/python2.7/site-packages/pymongo/operations.pyo
/usr/lib64/python2.7/site-packages/pymongo/periodic_executor.py
/usr/lib64/python2.7/site-packages/pymongo/periodic_executor.pyc
/usr/lib64/python2.7/site-packages/pymongo/periodic_executor.pyo
/usr/lib64/python2.7/site-packages/pymongo/pool.py
/usr/lib64/python2.7/site-packages/pymongo/pool.pyc
/usr/lib64/python2.7/site-packages/pymongo/pool.pyo
/usr/lib64/python2.7/site-packages/pymongo/read_concern.py
/usr/lib64/python2.7/site-packages/pymongo/read_concern.pyc
/usr/lib64/python2.7/site-packages/pymongo/read_concern.pyo
/usr/lib64/python2.7/site-packages/pymongo/read_preferences.py
/usr/lib64/python2.7/site-packages/pymongo/read_preferences.pyc
/usr/lib64/python2.7/site-packages/pymongo/read_preferences.pyo
/usr/lib64/python2.7/site-packages/pymongo/response.py
/usr/lib64/python2.7/site-packages/pymongo/response.pyc
/usr/lib64/python2.7/site-packages/pymongo/response.pyo
/usr/lib64/python2.7/site-packages/pymongo/results.py
/usr/lib64/python2.7/site-packages/pymongo/results.pyc
/usr/lib64/python2.7/site-packages/pymongo/results.pyo
/usr/lib64/python2.7/site-packages/pymongo/server.py
/usr/lib64/python2.7/site-packages/pymongo/server.pyc
/usr/lib64/python2.7/site-packages/pymongo/server.pyo
/usr/lib64/python2.7/site-packages/pymongo/server_description.py
/usr/lib64/python2.7/site-packages/pymongo/server_description.pyc
/usr/lib64/python2.7/site-packages/pymongo/server_description.pyo
/usr/lib64/python2.7/site-packages/pymongo/server_selectors.py
/usr/lib64/python2.7/site-packages/pymongo/server_selectors.pyc
/usr/lib64/python2.7/site-packages/pymongo/server_selectors.pyo
/usr/lib64/python2.7/site-packages/pymongo/server_type.py
/usr/lib64/python2.7/site-packages/pymongo/server_type.pyc
/usr/lib64/python2.7/site-packages/pymongo/server_type.pyo
/usr/lib64/python2.7/site-packages/pymongo/settings.py
/usr/lib64/python2.7/site-packages/pymongo/settings.pyc
/usr/lib64/python2.7/site-packages/pymongo/settings.pyo
/usr/lib64/python2.7/site-packages/pymongo/son_manipulator.py
/usr/lib64/python2.7/site-packages/pymongo/son_manipulator.pyc
/usr/lib64/python2.7/site-packages/pymongo/son_manipulator.pyo
/usr/lib64/python2.7/site-packages/pymongo/ssl_context.py
/usr/lib64/python2.7/site-packages/pymongo/ssl_context.pyc
/usr/lib64/python2.7/site-packages/pymongo/ssl_context.pyo
/usr/lib64/python2.7/site-packages/pymongo/ssl_support.py
/usr/lib64/python2.7/site-packages/pymongo/ssl_support.pyc
/usr/lib64/python2.7/site-packages/pymongo/ssl_support.pyo
/usr/lib64/python2.7/site-packages/pymongo/thread_util.py
/usr/lib64/python2.7/site-packages/pymongo/thread_util.pyc
/usr/lib64/python2.7/site-packages/pymongo/thread_util.pyo
/usr/lib64/python2.7/site-packages/pymongo/topology.py
/usr/lib64/python2.7/site-packages/pymongo/topology.pyc
/usr/lib64/python2.7/site-packages/pymongo/topology.pyo
/usr/lib64/python2.7/site-packages/pymongo/topology_description.py
/usr/lib64/python2.7/site-packages/pymongo/topology_description.pyc
/usr/lib64/python2.7/site-packages/pymongo/topology_description.pyo
/usr/lib64/python2.7/site-packages/pymongo/uri_parser.py
/usr/lib64/python2.7/site-packages/pymongo/uri_parser.pyc
/usr/lib64/python2.7/site-packages/pymongo/uri_parser.pyo
/usr/lib64/python2.7/site-packages/pymongo/write_concern.py
/usr/lib64/python2.7/site-packages/pymongo/write_concern.pyc
/usr/lib64/python2.7/site-packages/pymongo/write_concern.pyo
/usr/share/doc/python2-pymongo
/usr/share/doc/python2-pymongo/README.rst
/usr/share/licenses/python2-pymongo
/usr/share/licenses/python2-pymongo/LICENSE

References

Summary

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