How To Install texlive on Debian 11

In this tutorial we learn how to install texlive on Debian 11. texlive is TeX Live

Introduction

In this tutorial we learn how to install texlive on Debian 11.

What is texlive

texlive is:

The TeX Live software distribution offers a complete TeX system. It encompasses programs for typesetting, previewing and printing of TeX documents in many different languages, and a large collection of TeX macros and font libraries. . This metapackage provides a decent selection of the TeX Live packages which should suffice for the most common tasks. . The distribution also includes extensive general documentation about TeX, as well as the documentation accompanying the included software packages.

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

Install texlive Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install texlive

Install texlive Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install texlive

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

sudo aptitude -y install texlive

How To Uninstall texlive on Debian 11

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

sudo apt-get remove texlive

Uninstall texlive And Its Dependencies

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

sudo apt-get -y autoremove texlive

Remove texlive Configurations and Data

To remove texlive configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge texlive

Remove texlive configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge texlive

Dependencies

texlive have the following dependencies:

References

Summary

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