How To Install python3-pyvmomi on Rocky Linux 8

In this tutorial we learn how to install python3-pyvmomi on Rocky Linux 8. python3-pyvmomi is vSphere SDK for Python%{python3_other_version}

Introduction

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

What is python3-pyvmomi

pyVmomi is the Python SDK for the vSphere API that allows you to manage ESX, ESXi, and vCenter. This package is for Python3 version 3.6 only.

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

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

sudo dnf -y install python3-pyvmomi

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

sudo yum -y install python3-pyvmomi

How To Uninstall python3-pyvmomi on Rocky Linux 8

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

sudo dnf remove python3-pyvmomi

python3-pyvmomi Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/pyVim
/usr/lib/python3.6/site-packages/pyVim/__init__.py
/usr/lib/python3.6/site-packages/pyVim/__pycache__
/usr/lib/python3.6/site-packages/pyVim/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVim/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVim/__pycache__/connect.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVim/__pycache__/connect.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVim/__pycache__/sso.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVim/__pycache__/sso.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVim/__pycache__/task.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVim/__pycache__/task.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVim/connect.py
/usr/lib/python3.6/site-packages/pyVim/sso.py
/usr/lib/python3.6/site-packages/pyVim/task.py
/usr/lib/python3.6/site-packages/pyVmomi
/usr/lib/python3.6/site-packages/pyVmomi/Cache.py
/usr/lib/python3.6/site-packages/pyVmomi/CoreTypes.py
/usr/lib/python3.6/site-packages/pyVmomi/Differ.py
/usr/lib/python3.6/site-packages/pyVmomi/DynamicTypeManagerHelper.py
/usr/lib/python3.6/site-packages/pyVmomi/EamObjects.py
/usr/lib/python3.6/site-packages/pyVmomi/Iso8601.py
/usr/lib/python3.6/site-packages/pyVmomi/ManagedMethodExecutorHelper.py
/usr/lib/python3.6/site-packages/pyVmomi/PbmObjects.py
/usr/lib/python3.6/site-packages/pyVmomi/QueryTypes.py
/usr/lib/python3.6/site-packages/pyVmomi/ServerObjects.py
/usr/lib/python3.6/site-packages/pyVmomi/SmsObjects.py
/usr/lib/python3.6/site-packages/pyVmomi/SoapAdapter.py
/usr/lib/python3.6/site-packages/pyVmomi/StubAdapterAccessorImpl.py
/usr/lib/python3.6/site-packages/pyVmomi/Version.py
/usr/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py
/usr/lib/python3.6/site-packages/pyVmomi/__init__.py
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/Cache.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/Cache.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/CoreTypes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/CoreTypes.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/Differ.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/Differ.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/DynamicTypeManagerHelper.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/DynamicTypeManagerHelper.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/EamObjects.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/EamObjects.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/Iso8601.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/Iso8601.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/ManagedMethodExecutorHelper.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/ManagedMethodExecutorHelper.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/PbmObjects.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/PbmObjects.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/QueryTypes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/QueryTypes.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/ServerObjects.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/ServerObjects.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/SmsObjects.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/SmsObjects.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/SoapAdapter.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/SoapAdapter.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/StubAdapterAccessorImpl.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/StubAdapterAccessorImpl.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/Version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/Version.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/VmomiSupport.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/VmomiSupport.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/pyVmomiSettings.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pyVmomi/__pycache__/pyVmomiSettings.cpython-36.pyc
/usr/lib/python3.6/site-packages/pyVmomi/pyVmomiSettings.py
/usr/lib/python3.6/site-packages/pyvmomi-7.0.2-py3.6.egg-info
/usr/lib/python3.6/site-packages/pyvmomi-7.0.2-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/pyvmomi-7.0.2-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/pyvmomi-7.0.2-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/pyvmomi-7.0.2-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/pyvmomi-7.0.2-py3.6.egg-info/zip-safe
/usr/share/doc/python3-pyvmomi
/usr/share/doc/python3-pyvmomi/README.rst
/usr/share/licenses/python3-pyvmomi
/usr/share/licenses/python3-pyvmomi/LICENSE.txt

References

Summary

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