How To Install python3-virtualenv-clone on AlmaLinux 8

In this tutorial we learn how to install python3-virtualenv-clone in AlmaLinux 8. python3-virtualenv-clone is Script to clone virtualenvs

Introduction

In this tutorial we learn how to install python3-virtualenv-clone on AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 8

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

sudo dnf remove python3-virtualenv-clone

References

Summary

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