How To Install python3-virtualenv-clone on Rocky Linux 8

In this tutorial we learn how to install python3-virtualenv-clone on Rocky Linux 8. python3-virtualenv-clone is Script to clone virtualenvs

Introduction

In this tutorial we learn how to install python3-virtualenv-clone on Rocky Linux 8.

What is python3-virtualenv-clone

virtualenv cloning script. A script for cloning a non-relocatable virtualenv. Virtualenv provides a way to make virtualenv’s relocatable which could then be copied as we wanted. However making a virtualenv relocatable this way breaks the no-site-packages isolation of the virtualenv as well as other aspects that come with relative paths and ‘/usr/bin/env’ shebangs that may be undesirable. Also, the .pth and .egg-link rewriting doesn’t seem to work as intended. This attempts to overcome these issues and provide a way to easily clone an existing virtualenv.

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

Install python3-virtualenv-clone 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-virtualenv-clone using dnf by running the following command:

sudo dnf -y install python3-virtualenv-clone

Install python3-virtualenv-clone 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-virtualenv-clone using yum by running the following command:

sudo yum -y install python3-virtualenv-clone

How To Uninstall python3-virtualenv-clone on Rocky Linux 8

To uninstall only the python3-virtualenv-clone package we can use the following command:

sudo dnf remove python3-virtualenv-clone

python3-virtualenv-clone Package Contents on Rocky Linux 8

/usr/bin/virtualenv-clone
/usr/lib/python3.6/site-packages/__pycache__/clonevirtualenv.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/__pycache__/clonevirtualenv.cpython-36.pyc
/usr/lib/python3.6/site-packages/clonevirtualenv.py
/usr/lib/python3.6/site-packages/virtualenv_clone-0.5.4-py3.6.egg-info
/usr/lib/python3.6/site-packages/virtualenv_clone-0.5.4-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/virtualenv_clone-0.5.4-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/virtualenv_clone-0.5.4-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/virtualenv_clone-0.5.4-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/virtualenv_clone-0.5.4-py3.6.egg-info/top_level.txt
/usr/share/doc/python3-virtualenv-clone
/usr/share/doc/python3-virtualenv-clone/README.md

References

Summary

In this tutorial we learn how to install python3-virtualenv-clone on Rocky Linux 8 using yum and dnf.