How To Install python3-requests on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-requests
on Rocky Linux 8.
What is python3-requests
Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python’s built-in urllib2 module provides most of the HTTP capabilities you should need, but the API is thoroughly broken. This library is designed to make HTTP requests easy for developers.
We can use yum
or dnf
to install python3-requests
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-requests.
Install python3-requests 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-requests
using dnf
by running the following command:
sudo dnf -y install python3-requests
Install python3-requests 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-requests
using yum
by running the following command:
sudo yum -y install python3-requests
How To Uninstall python3-requests on Rocky Linux 8
To uninstall only the python3-requests
package we can use the following command:
sudo dnf remove python3-requests
python3-requests Package Contents on Rocky Linux 8
/usr/lib/python3.6/site-packages/requests
/usr/lib/python3.6/site-packages/requests-2.20.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/requests-2.20.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/requests-2.20.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/requests-2.20.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/requests-2.20.0-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/requests-2.20.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/requests-2.20.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/requests/__init__.py
/usr/lib/python3.6/site-packages/requests/__pycache__
/usr/lib/python3.6/site-packages/requests/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/__version__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/__version__.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/_internal_utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/_internal_utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/adapters.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/adapters.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/api.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/api.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/auth.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/auth.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/certs.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/certs.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/compat.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/compat.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/cookies.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/cookies.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/exceptions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/exceptions.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/help.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/help.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/hooks.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/hooks.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/models.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/models.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/packages.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/packages.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/sessions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/sessions.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/status_codes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/status_codes.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/structures.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/structures.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/requests/__pycache__/utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/requests/__version__.py
/usr/lib/python3.6/site-packages/requests/_internal_utils.py
/usr/lib/python3.6/site-packages/requests/adapters.py
/usr/lib/python3.6/site-packages/requests/api.py
/usr/lib/python3.6/site-packages/requests/auth.py
/usr/lib/python3.6/site-packages/requests/certs.py
/usr/lib/python3.6/site-packages/requests/compat.py
/usr/lib/python3.6/site-packages/requests/cookies.py
/usr/lib/python3.6/site-packages/requests/exceptions.py
/usr/lib/python3.6/site-packages/requests/help.py
/usr/lib/python3.6/site-packages/requests/hooks.py
/usr/lib/python3.6/site-packages/requests/models.py
/usr/lib/python3.6/site-packages/requests/packages.py
/usr/lib/python3.6/site-packages/requests/sessions.py
/usr/lib/python3.6/site-packages/requests/status_codes.py
/usr/lib/python3.6/site-packages/requests/structures.py
/usr/lib/python3.6/site-packages/requests/utils.py
/usr/share/doc/python3-requests
/usr/share/doc/python3-requests/HISTORY.md
/usr/share/doc/python3-requests/README.md
/usr/share/licenses/python3-requests
/usr/share/licenses/python3-requests/LICENSE
References
Summary
In this tutorial we learn how to install python3-requests
on Rocky Linux 8 using yum and dnf.