How To Install doxygen on Ubuntu 18.04
Introduction
In this tutorial we learn how to install doxygen
on Ubuntu 18.04.
What is doxygen
doxygen is:
Doxygen is a documentation system for C, C++, Java, Objective-C, Python, IDL and to some extent PHP, C#, and D. It can generate an on-line class browser (in HTML) and/or an off-line reference manual (in LaTeX) from a set of documented source files. There is also support for generating man pages and for converting the generated output into Postscript, hyperlinked PDF or compressed HTML. 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 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 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 Ubuntu. 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 Ubuntu 18.04
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 Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove doxygen
Remove doxygen Configurations and Data
To remove doxygen
configuration and data from Ubuntu 18.04 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
References
Summary
In this tutorial we learn how to install doxygen
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.