How To Install python-htmltmpl on Debian 9

In this tutorial we learn how to install python-htmltmpl on Debian 9. python-htmltmpl is Templating engine for separation of code and HTML

Introduction

In this tutorial we learn how to install python-htmltmpl on Debian 9.

What is python-htmltmpl

python-htmltmpl is:

The purpose of the templating engine is to provide web application developers, who need to separate program code and design (HTML code) of their web application projects, with a templating tool that can be easily used by cooperating webdesigners who have no programming skills.

Templating language provided by the engine is inspired by Perl templating module HTML::Template. Templates created for HTML::Template can be used with this engine in case they do not violate character case rules of htmltmpl.

The engine is currently available for Python and PHP. The Python package includes easydoc, a module which uses the templating engine to generate HTML documentation from docstrings embedded in source files of Python modules.

There are three methods to install python-htmltmpl on Debian 9. 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-htmltmpl 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-htmltmpl using apt-get by running the following command:

sudo apt-get -y install python-htmltmpl

Install python-htmltmpl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-htmltmpl

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

sudo aptitude -y install python-htmltmpl

How To Uninstall python-htmltmpl on Debian 9

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

sudo apt-get remove python-htmltmpl

Uninstall python-htmltmpl And Its Dependencies

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

sudo apt-get -y autoremove python-htmltmpl

Remove python-htmltmpl Configurations and Data

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

sudo apt-get -y purge python-htmltmpl

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

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

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

Dependencies

python-htmltmpl have the following dependencies:

References

Summary

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