How To Install libmarkdent-perl on Debian 11

In this tutorial we learn how to install libmarkdent-perl on Debian 11. libmarkdent-perl is event-based Markdown parser toolkit

Introduction

In this tutorial we learn how to install libmarkdent-perl on Debian 11.

What is libmarkdent-perl

libmarkdent-perl is:

Markdent provides a toolkit for parsing Markdown (and Markdown variants, aka dialects). Unlike the other Markdown Perl tools, this module can be used for more than just generating HTML. The core parser generates events (like XML’s SAX), making it easy to analyze a Markdown document in any number of ways.

If you’re only interested in converting Markdown to HTML, you can use the Markdent::Simple::Document class to do this, although you can just as well use better battle-tested tools like Text::Markdown.

Markdown is a lightweight markup language with plain text formatting syntax. Its design allows it to be converted to many output formats, but the original tool by the same name only supports HTML.

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

Install libmarkdent-perl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libmarkdent-perl

Install libmarkdent-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmarkdent-perl

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

sudo aptitude -y install libmarkdent-perl

How To Uninstall libmarkdent-perl on Debian 11

To uninstall only the libmarkdent-perl package we can use the following command:

sudo apt-get remove libmarkdent-perl

Uninstall libmarkdent-perl And Its Dependencies

To uninstall libmarkdent-perl and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libmarkdent-perl

Remove libmarkdent-perl Configurations and Data

To remove libmarkdent-perl configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libmarkdent-perl

Remove libmarkdent-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmarkdent-perl

Dependencies

libmarkdent-perl have the following dependencies:

References

Summary

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