How To Install python2-webtest on Rocky Linux 8

In this tutorial we learn how to install python2-webtest on Rocky Linux 8. python2-webtest is Helper to test WSGI applications

Introduction

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

What is python2-webtest

WebTest wraps any WSGI application and makes it easy to send test requests to that application, without starting up an HTTP server. This provides convenient full-stack testing of applications written with any WSGI-compatible framework.

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

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

sudo dnf -y install python2-webtest

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

sudo yum -y install python2-webtest

How To Uninstall python2-webtest on Rocky Linux 8

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

sudo dnf remove python2-webtest

python2-webtest Package Contents on Rocky Linux 8

/usr/lib/python2.7/site-packages/WebTest-2.0.33-py2.7.egg-info
/usr/lib/python2.7/site-packages/WebTest-2.0.33-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/WebTest-2.0.33-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/WebTest-2.0.33-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/WebTest-2.0.33-py2.7.egg-info/entry_points.txt
/usr/lib/python2.7/site-packages/WebTest-2.0.33-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/WebTest-2.0.33-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/WebTest-2.0.33-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/webtest
/usr/lib/python2.7/site-packages/webtest/__init__.py
/usr/lib/python2.7/site-packages/webtest/__init__.pyc
/usr/lib/python2.7/site-packages/webtest/__init__.pyo
/usr/lib/python2.7/site-packages/webtest/app.py
/usr/lib/python2.7/site-packages/webtest/app.pyc
/usr/lib/python2.7/site-packages/webtest/app.pyo
/usr/lib/python2.7/site-packages/webtest/compat.py
/usr/lib/python2.7/site-packages/webtest/compat.pyc
/usr/lib/python2.7/site-packages/webtest/compat.pyo
/usr/lib/python2.7/site-packages/webtest/debugapp.py
/usr/lib/python2.7/site-packages/webtest/debugapp.pyc
/usr/lib/python2.7/site-packages/webtest/debugapp.pyo
/usr/lib/python2.7/site-packages/webtest/ext.py
/usr/lib/python2.7/site-packages/webtest/ext.pyc
/usr/lib/python2.7/site-packages/webtest/ext.pyo
/usr/lib/python2.7/site-packages/webtest/forms.py
/usr/lib/python2.7/site-packages/webtest/forms.pyc
/usr/lib/python2.7/site-packages/webtest/forms.pyo
/usr/lib/python2.7/site-packages/webtest/http.py
/usr/lib/python2.7/site-packages/webtest/http.pyc
/usr/lib/python2.7/site-packages/webtest/http.pyo
/usr/lib/python2.7/site-packages/webtest/lint.py
/usr/lib/python2.7/site-packages/webtest/lint.pyc
/usr/lib/python2.7/site-packages/webtest/lint.pyo
/usr/lib/python2.7/site-packages/webtest/response.py
/usr/lib/python2.7/site-packages/webtest/response.pyc
/usr/lib/python2.7/site-packages/webtest/response.pyo
/usr/lib/python2.7/site-packages/webtest/sel.py
/usr/lib/python2.7/site-packages/webtest/sel.pyc
/usr/lib/python2.7/site-packages/webtest/sel.pyo
/usr/lib/python2.7/site-packages/webtest/utils.py
/usr/lib/python2.7/site-packages/webtest/utils.pyc
/usr/lib/python2.7/site-packages/webtest/utils.pyo
/usr/share/doc/python2-webtest
/usr/share/doc/python2-webtest/Makefile
/usr/share/doc/python2-webtest/api.rst
/usr/share/doc/python2-webtest/changelog.rst
/usr/share/doc/python2-webtest/conf.py
/usr/share/doc/python2-webtest/contributing.rst
/usr/share/doc/python2-webtest/debugapp.rst
/usr/share/doc/python2-webtest/form.html
/usr/share/doc/python2-webtest/forms.rst
/usr/share/doc/python2-webtest/index.rst
/usr/share/doc/python2-webtest/testapp.rst
/usr/share/doc/python2-webtest/testresponse.rst
/usr/share/doc/python2-webtest/webtest.rst

References

Summary

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