How To Install doxygen on Debian 12

Learn how to install doxygen on Debian 12 with this tutorial. doxygen is Generate documentation from source code

Introduction

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

What is doxygen

doxygen is:

Doxygen is a documentation system for C++, C, Objective-C, C#, PHP, Java, Python, IDL, Fortran, VHDL and to some extent D. It can generate an on-line documentation browser (in HTML) and/or an off-line reference manual (in LaTeX) from a set of annotated source files.

There is also support for generating RTF, PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The documentation is extracted directly from the sources.

Install the doxygen-latex package to build LaTeX based documents.

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

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

sudo apt-get update

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

sudo apt-get -y install doxygen

Install doxygen Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install doxygen

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

sudo aptitude -y install doxygen

How To Uninstall doxygen on Debian 12

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

sudo apt-get remove doxygen

Uninstall doxygen And Its Dependencies

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

sudo apt-get -y autoremove doxygen

Remove doxygen Configurations and Data

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

sudo apt-get -y purge doxygen

Remove doxygen configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge doxygen

Dependencies

doxygen have the following dependencies:

References

Summary

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