How To Install tldr-py on Ubuntu 18.04

In this tutorial we learn how to install tldr-py on Ubuntu 18.04. tldr-py is Python client for tldr

Introduction

In this tutorial we learn how to install tldr-py on Ubuntu 18.04.

What is tldr-py

tldr-py is:

Yet another Python client for tldr. tldr is a collection of simplified and community-driven man pages. Instead of the long man pages, tldr will give you several simple yet powerful examples.

tldr is just a simple version for the man page, it’s not an alternative. Sometimes, you should read the man pages patiently.

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

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

sudo apt-get update

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

sudo apt-get -y install tldr-py

Install tldr-py Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install tldr-py

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

sudo aptitude -y install tldr-py

How To Uninstall tldr-py on Ubuntu 18.04

To uninstall only the tldr-py package we can use the following command:

sudo apt-get remove tldr-py

Uninstall tldr-py And Its Dependencies

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

sudo apt-get -y autoremove tldr-py

Remove tldr-py Configurations and Data

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

sudo apt-get -y purge tldr-py

Remove tldr-py configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge tldr-py

References

Summary

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