How To Install env2 on Debian 10

Learn how to install env2 on Debian 10 with this tutorial. env2 is convert environment variables between scripting languages

Introduction

In this tutorial we learn how to install env2 on Debian 10.

What is env2

env2 is:

Output environment setting code for the target scripting language. Can report only differences or all environment variables.

For example, convert csh setup script to bash or the other way around. Or use it to simplify the creation of modulesfiles (cf. package environment-modules).

Support bash, csh, ksh, modulecmd, perl, plist, sh, tclsh, tcsh, vim, yaml, and zsh.

There are three methods to install env2 on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install env2 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install env2 using apt-get by running the following command:

sudo apt-get -y install env2

Install env2 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install env2 using apt by running the following command:

sudo apt -y install env2

Install env2 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install env2 using aptitude by running the following command:

sudo aptitude -y install env2

How To Uninstall env2 on Debian 10

To uninstall only the env2 package we can use the following command:

sudo apt-get remove env2

Uninstall env2 And Its Dependencies

To uninstall env2 and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove env2

Remove env2 Configurations and Data

To remove env2 configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge env2

Remove env2 configuration, data, and all of its dependencies

We can use the following command to remove env2 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge env2

Dependencies

env2 have the following dependencies:

References

Summary

In this tutorial we learn how to install env2 package on Debian 10 using different package management tools: apt, apt-get and aptitude.