How To Install python3-urwidtrees on Ubuntu 18.04

In this tutorial we learn how to install python3-urwidtrees on Ubuntu 18.04. python3-urwidtrees is Urwid Tree Container API

Introduction

In this tutorial we learn how to install python3-urwidtrees on Ubuntu 18.04.

What is python3-urwidtrees

python3-urwidtrees is:

This is a Widget Container API for the urwid toolkit. It uses a MVC approach and allows one to build trees of widgets. Its design goals are:

  • clear separation classes that define, decorate and display trees of.
  • widgets representation of trees by local operations on node positions.
  • easy to use default implementation for simple trees Collapses are.
  • considered decoration.

This package is for Python 3 environment.

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

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

sudo apt-get update

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

sudo apt-get -y install python3-urwidtrees

Install python3-urwidtrees Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-urwidtrees

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

sudo aptitude -y install python3-urwidtrees

How To Uninstall python3-urwidtrees on Ubuntu 18.04

To uninstall only the python3-urwidtrees package we can use the following command:

sudo apt-get remove python3-urwidtrees

Uninstall python3-urwidtrees And Its Dependencies

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

sudo apt-get -y autoremove python3-urwidtrees

Remove python3-urwidtrees Configurations and Data

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

sudo apt-get -y purge python3-urwidtrees

Remove python3-urwidtrees configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-urwidtrees

References

Summary

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