How To Install mkdocs-literate-nav on Debian 12

Learn how to install mkdocs-literate-nav on Debian 12 with this tutorial. mkdocs-literate-nav is MkDocs extension to specify the navigation in Markdown (Python3)

Introduction

In this tutorial we learn how to install mkdocs-literate-nav on Debian 12.

What is mkdocs-literate-nav

mkdocs-literate-nav is:

MkDocs is a fast, simple and downright gorgeous static site generator that’s geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file.

This package contains the mkdocs-literate-nav extension, which allows one to use Markdown instead of YAML to define a navigation structure within your MkDocs based documentation files.

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

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

sudo apt-get update

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

sudo apt-get -y install mkdocs-literate-nav

Install mkdocs-literate-nav Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install mkdocs-literate-nav using apt by running the following command:

sudo apt -y install mkdocs-literate-nav

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

sudo aptitude -y install mkdocs-literate-nav

How To Uninstall mkdocs-literate-nav on Debian 12

To uninstall only the mkdocs-literate-nav package we can use the following command:

sudo apt-get remove mkdocs-literate-nav

Uninstall mkdocs-literate-nav And Its Dependencies

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

sudo apt-get -y autoremove mkdocs-literate-nav

Remove mkdocs-literate-nav Configurations and Data

To remove mkdocs-literate-nav configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge mkdocs-literate-nav

Remove mkdocs-literate-nav configuration, data, and all of its dependencies

We can use the following command to remove mkdocs-literate-nav configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge mkdocs-literate-nav

Dependencies

mkdocs-literate-nav have the following dependencies:

References

Summary

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