How To Install lua-doc on Debian 10

Learn how to install lua-doc on Debian 10 with this tutorial. lua-doc is Documentation generator for lua

Introduction

In this tutorial we learn how to install lua-doc on Debian 10.

What is lua-doc

lua-doc is:

LuaDoc is a documentation generator tool for Lua source code. It parses the declarations and documentation comments in a set of Lua source files and produces a set of XHTML pages describing the commented declarations and functions.

The output is not limited to XHTML. Other formats can be generated by implementing new doclets. The format of the documentation comments is also flexible and can be customized by implementing new taglets.

This package also contains the documentation for luadoc, describing the supported syntax and how to customize the tool input (taglets) and output (doclets).

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

Install lua-doc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install lua-doc

Install lua-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install lua-doc

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

sudo aptitude -y install lua-doc

How To Uninstall lua-doc on Debian 10

To uninstall only the lua-doc package we can use the following command:

sudo apt-get remove lua-doc

Uninstall lua-doc And Its Dependencies

To uninstall lua-doc and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove lua-doc

Remove lua-doc Configurations and Data

To remove lua-doc configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge lua-doc

Remove lua-doc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge lua-doc

Dependencies

lua-doc have the following dependencies:

References

Summary

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