How To Install mkdocs-nature on Debian 10

Learn how to install mkdocs-nature on Debian 10 with this tutorial. mkdocs-nature is Nature theme for MkDocs

Introduction

In this tutorial we learn how to install mkdocs-nature on Debian 10.

What is mkdocs-nature

mkdocs-nature 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 Nature theme, adapted from Sphinx.

There are three methods to install mkdocs-nature 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 mkdocs-nature 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-nature using apt-get by running the following command:

sudo apt-get -y install mkdocs-nature

Install mkdocs-nature Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mkdocs-nature

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

sudo aptitude -y install mkdocs-nature

How To Uninstall mkdocs-nature on Debian 10

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

sudo apt-get remove mkdocs-nature

Uninstall mkdocs-nature And Its Dependencies

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

sudo apt-get -y autoremove mkdocs-nature

Remove mkdocs-nature Configurations and Data

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

sudo apt-get -y purge mkdocs-nature

Remove mkdocs-nature configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mkdocs-nature

Dependencies

mkdocs-nature have the following dependencies:

References

Summary

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