How To Install python2-pretend on Rocky Linux 8

In this tutorial we learn how to install python2-pretend on Rocky Linux 8. python2-pretend is A library for stubbing in Python

Introduction

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

What is python2-pretend

Pretend is a library to make stubbing with Python easier.

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

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

sudo dnf -y install python2-pretend

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

sudo yum -y install python2-pretend

How To Uninstall python2-pretend on Rocky Linux 8

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

sudo dnf remove python2-pretend

python2-pretend Package Contents on Rocky Linux 8

/usr/lib/python2.7/site-packages/pretend-1.0.8-py2.7.egg-info
/usr/lib/python2.7/site-packages/pretend-1.0.8-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/pretend-1.0.8-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/pretend-1.0.8-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/pretend-1.0.8-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/pretend.py
/usr/lib/python2.7/site-packages/pretend.pyc
/usr/lib/python2.7/site-packages/pretend.pyo
/usr/share/doc/python2-pretend
/usr/share/doc/python2-pretend/PKG-INFO
/usr/share/doc/python2-pretend/README.rst
/usr/share/licenses/python2-pretend
/usr/share/licenses/python2-pretend/LICENSE.rst

References

Summary

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