How To Install python38-requests on Rocky Linux 8

In this tutorial we learn how to install python38-requests on Rocky Linux 8. python38-requests is HTTP library, written in Python, for human beings

Introduction

In this tutorial we learn how to install python38-requests on Rocky Linux 8.

What is python38-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 python38-requests on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python38-requests.

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

sudo dnf -y install python38-requests

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

sudo yum -y install python38-requests

How To Uninstall python38-requests on Rocky Linux 8

To uninstall only the python38-requests package we can use the following command:

sudo dnf remove python38-requests

python38-requests Package Contents on Rocky Linux 8

/usr/lib/python3.8/site-packages/requests
/usr/lib/python3.8/site-packages/requests-2.22.0-py3.8.egg-info
/usr/lib/python3.8/site-packages/requests-2.22.0-py3.8.egg-info/PKG-INFO
/usr/lib/python3.8/site-packages/requests-2.22.0-py3.8.egg-info/SOURCES.txt
/usr/lib/python3.8/site-packages/requests-2.22.0-py3.8.egg-info/dependency_links.txt
/usr/lib/python3.8/site-packages/requests-2.22.0-py3.8.egg-info/not-zip-safe
/usr/lib/python3.8/site-packages/requests-2.22.0-py3.8.egg-info/requires.txt
/usr/lib/python3.8/site-packages/requests-2.22.0-py3.8.egg-info/top_level.txt
/usr/lib/python3.8/site-packages/requests/__init__.py
/usr/lib/python3.8/site-packages/requests/__pycache__
/usr/lib/python3.8/site-packages/requests/__pycache__/__init__.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/__init__.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/__version__.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/__version__.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/_internal_utils.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/_internal_utils.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/adapters.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/adapters.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/api.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/api.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/auth.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/auth.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/certs.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/certs.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/compat.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/compat.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/cookies.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/cookies.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/exceptions.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/exceptions.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/help.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/help.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/hooks.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/hooks.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/models.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/models.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/packages.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/packages.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/sessions.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/sessions.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/status_codes.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/status_codes.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/structures.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/structures.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/utils.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/requests/__pycache__/utils.cpython-38.pyc
/usr/lib/python3.8/site-packages/requests/__version__.py
/usr/lib/python3.8/site-packages/requests/_internal_utils.py
/usr/lib/python3.8/site-packages/requests/adapters.py
/usr/lib/python3.8/site-packages/requests/api.py
/usr/lib/python3.8/site-packages/requests/auth.py
/usr/lib/python3.8/site-packages/requests/certs.py
/usr/lib/python3.8/site-packages/requests/compat.py
/usr/lib/python3.8/site-packages/requests/cookies.py
/usr/lib/python3.8/site-packages/requests/exceptions.py
/usr/lib/python3.8/site-packages/requests/help.py
/usr/lib/python3.8/site-packages/requests/hooks.py
/usr/lib/python3.8/site-packages/requests/models.py
/usr/lib/python3.8/site-packages/requests/packages.py
/usr/lib/python3.8/site-packages/requests/sessions.py
/usr/lib/python3.8/site-packages/requests/status_codes.py
/usr/lib/python3.8/site-packages/requests/structures.py
/usr/lib/python3.8/site-packages/requests/utils.py
/usr/share/doc/python38-requests
/usr/share/doc/python38-requests/HISTORY.md
/usr/share/doc/python38-requests/README.md
/usr/share/licenses/python38-requests
/usr/share/licenses/python38-requests/LICENSE

References

Summary

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