How To Install python-trml2pdf on Debian 9

In this tutorial we learn how to install python-trml2pdf on Debian 9. python-trml2pdf is Converter of Report Markup Language (RML) file to PDF

Introduction

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

What is python-trml2pdf

python-trml2pdf is:

Tiny RML2PDF is a tool to easily create PDF document without programming. It can be used as a Python library or as a standalone binary. It converts a RML, an XML dialect that lets you define the precise appearance of a printed document, to a PDF. You can use your existing tools to generate an input file that exactly describes the layout of a printed document, and RML2PDF converts it into PDF. RML is a much more powerful and flexible alternative to XSL:FO.

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

sudo apt-get -y install python-trml2pdf

Install python-trml2pdf Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-trml2pdf

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

sudo aptitude -y install python-trml2pdf

How To Uninstall python-trml2pdf on Debian 9

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

sudo apt-get remove python-trml2pdf

Uninstall python-trml2pdf And Its Dependencies

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

sudo apt-get -y autoremove python-trml2pdf

Remove python-trml2pdf Configurations and Data

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

sudo apt-get -y purge python-trml2pdf

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

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

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

Dependencies

python-trml2pdf have the following dependencies:

References

Summary

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