How To Install python3-httpretty on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-httpretty
on Rocky Linux 8.
What is python3-httpretty
Once upon a time a python developer wanted to use a RESTful API, everything was fine but until the day he needed to test the code that hits the RESTful API what if the API server is down? What if its content has changed? Don’t worry, HTTPretty is here for you.
We can use yum
or dnf
to install python3-httpretty
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-httpretty.
Install python3-httpretty 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-httpretty
using dnf
by running the following command:
sudo dnf -y install python3-httpretty
Install python3-httpretty 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-httpretty
using yum
by running the following command:
sudo yum -y install python3-httpretty
How To Uninstall python3-httpretty on Rocky Linux 8
To uninstall only the python3-httpretty
package we can use the following command:
sudo dnf remove python3-httpretty
python3-httpretty Package Contents on Rocky Linux 8
/usr/lib/python3.6/site-packages/httpretty
/usr/lib/python3.6/site-packages/httpretty-0.9.7-py3.6.egg-info
/usr/lib/python3.6/site-packages/httpretty-0.9.7-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/httpretty-0.9.7-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/httpretty-0.9.7-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/httpretty-0.9.7-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/httpretty-0.9.7-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/httpretty-0.9.7-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/httpretty/__init__.py
/usr/lib/python3.6/site-packages/httpretty/__pycache__
/usr/lib/python3.6/site-packages/httpretty/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/compat.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/compat.cpython-36.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/core.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/core.cpython-36.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/errors.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/errors.cpython-36.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/http.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/http.cpython-36.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/httpretty/__pycache__/version.cpython-36.pyc
/usr/lib/python3.6/site-packages/httpretty/compat.py
/usr/lib/python3.6/site-packages/httpretty/core.py
/usr/lib/python3.6/site-packages/httpretty/errors.py
/usr/lib/python3.6/site-packages/httpretty/http.py
/usr/lib/python3.6/site-packages/httpretty/utils.py
/usr/lib/python3.6/site-packages/httpretty/version.py
/usr/share/doc/python3-httpretty
/usr/share/doc/python3-httpretty/README.rst
/usr/share/licenses/python3-httpretty
/usr/share/licenses/python3-httpretty/COPYING
References
Summary
In this tutorial we learn how to install python3-httpretty
on Rocky Linux 8 using yum and dnf.