How To Install python-pyth on Ubuntu 18.04

In this tutorial we learn how to install python-pyth on Ubuntu 18.04. python-pyth is Python text markup and conversion

Introduction

In this tutorial we learn how to install python-pyth on Ubuntu 18.04.

What is python-pyth

python-pyth is:

Pyth is a library used to manipulate different formats of marked-up text.

The following list of document formats are currently available:

  • XHTML (fully supported: read, write)
  • RTF (fully supported: read, write)
  • PDF (only output)

It also can generate documents from Python markup a la Nevow’s stan and has limited experimental support for LaTeX.

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

sudo apt-get -y install python-pyth

Install python-pyth Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-pyth

Install python-pyth 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install python-pyth

How To Uninstall python-pyth on Ubuntu 18.04

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

sudo apt-get remove python-pyth

Uninstall python-pyth And Its Dependencies

To uninstall python-pyth and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-pyth

Remove python-pyth Configurations and Data

To remove python-pyth configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-pyth

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

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

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

References

Summary

In this tutorial we learn how to install python-pyth package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.