How To Install humanfriendly on Debian 12

Learn how to install humanfriendly on Debian 12 with this tutorial. humanfriendly is Helper command for the humanfriendly Python3 library

Introduction

In this tutorial we learn how to install humanfriendly on Debian 12.

What is humanfriendly

humanfriendly is:

A Python library that can be used to make text interfaces more user friendly. It provides parsing and formatting numbers, file sizes, pathnames and timespans in simple human friendly formats. It provides easy to use timers for long running operations, prompts for selecting a choice from a list of options by typing the option’s number or a unique substring of the option, and terminal interaction including text styling (ANSI escape sequences), user friendly rendering of usage messages and querying the terminal for its size.

This package provides a helper command to access the functions in the library.

There are three methods to install humanfriendly on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install humanfriendly Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install humanfriendly

Install humanfriendly Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install humanfriendly using apt by running the following command:

sudo apt -y install humanfriendly

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

sudo aptitude -y install humanfriendly

How To Uninstall humanfriendly on Debian 12

To uninstall only the humanfriendly package we can use the following command:

sudo apt-get remove humanfriendly

Uninstall humanfriendly And Its Dependencies

To uninstall humanfriendly and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove humanfriendly

Remove humanfriendly Configurations and Data

To remove humanfriendly configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge humanfriendly

Remove humanfriendly configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge humanfriendly

Dependencies

humanfriendly have the following dependencies:

References

Summary

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