How To Install auctex on Debian 11

In this tutorial we learn how to install auctex on Debian 11. auctex is integrated document editing environment for TeX etc.

Introduction

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

What is auctex

auctex is:

AUCTeX is a comprehensive customizable integrated environment for writing input files for TeX/LaTeX/ConTeXt/Texinfo using GNU Emacs. Currently XEmacs ships with its own AUCTeX version.

It supports processing source files by running TeX and related tools (such as output filters, post processors for generating indices and bibliographies, and viewers) from inside Emacs. AUCTeX allows browsing through the errors reported by TeX, while it moves the cursor directly to the reported error, and displays some documentation for that particular error. This will even work when the document is spread over several files.

AUCTeX can automatically indent LaTeX source, either line by line or for an entire document, and has a special outline feature which can greatly assist in getting an overview of a document.

AUCTeX is written entirely in Emacs Lisp, and may therefore be enhanced with new features for specific needs. It comes with a large range of handy Emacs macros. It is a GNU project, and documentation for all its features is accessible via the Emacs info browser.

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

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

sudo apt-get update

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

sudo apt-get -y install auctex

Install auctex Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install auctex

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

sudo aptitude -y install auctex

How To Uninstall auctex on Debian 11

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

sudo apt-get remove auctex

Uninstall auctex And Its Dependencies

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

sudo apt-get -y autoremove auctex

Remove auctex Configurations and Data

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

sudo apt-get -y purge auctex

Remove auctex configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge auctex

Dependencies

auctex have the following dependencies:

References

Summary

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