How To Install python-empy on Debian 10

Learn how to install python-empy on Debian 10 with this tutorial. python-empy is templating system for Python (Python 2)

Introduction

In this tutorial we learn how to install python-empy on Debian 10.

What is python-empy

python-empy is:

EmPy is a system for embedding Python expressions and statements in template text; it takes an EmPy source file, processes it, and produces output. This is accomplished via expansions, which are special signals to the EmPy system and are set off by a special prefix (by default the at sign, ‘@’). EmPy can expand arbitrary Python expressions and statements in this way, as well as a variety of special forms. Textual data not explicitly delimited in this way is sent unaffected to the output, allowing Python to be used in effect as a markup language. Also supported are “hook” callbacks, recording and playback via diversions, and dynamic, chainable filters. The system is highly configurable via command line options and embedded commands.

This is the Python 2 version of the package. This version installs the empy executable under the name “empy”

There are three methods to install python-empy 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 python-empy Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python-empy

Install python-empy Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-empy

Install python-empy 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 python-empy using aptitude by running the following command:

sudo aptitude -y install python-empy

How To Uninstall python-empy on Debian 10

To uninstall only the python-empy package we can use the following command:

sudo apt-get remove python-empy

Uninstall python-empy And Its Dependencies

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

sudo apt-get -y autoremove python-empy

Remove python-empy Configurations and Data

To remove python-empy configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge python-empy

Remove python-empy configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-empy

Dependencies

python-empy have the following dependencies:

References

Summary

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