How To Install libmd4c0 on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 487 words
Introduction
In this tutorial we learn how to install libmd4c0
on Ubuntu.
What is libmd4c0
libmd4c0 is:
MD4C is C Markdown parser with the following features:
Compliance: Generally MD4C aims to be compliant to the latest version of CommonMark specification. Right now fully compliant to CommonMark 0.28.
Extensions: MD4C supports some commonly requested and accepted extensions.
Compactness: MD4C is implemented in one source file and one header file.
Embedding: MD4C is easy to reuse in other projects, its API is very straightforward: There is actually just one function, md_parse().
Push model: MD4C parses the complete document and calls callback functions provided by the application for each start/end of block, start/end of a span, and with any textual contents.
Portability: MD4C builds and works on Windows and Linux, and it should be fairly simple to make it run also on most other systems.
Encoding: MD4C can be compiled to recognize ASCII-only control characters, UTF-8 and, on Windows, also UTF-16, i.e. what is on Windows commonly called just “Unicode”. See more details below.
Permissive license: MD4C is available under the MIT license.
There are three methods to install libmd4c0
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libmd4c0 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libmd4c0
using apt-get
by running the following command:
sudo apt-get -y install libmd4c0
Install libmd4c0 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libmd4c0
using apt
by running the following command:
sudo apt -y install libmd4c0
Install libmd4c0 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 libmd4c0
using aptitude
by running the following command:
sudo aptitude -y install libmd4c0
How To Uninstall libmd4c0 on Ubuntu
To uninstall only the libmd4c0
package we can use the following command:
sudo apt-get remove libmd4c0
Uninstall libmd4c0 And Its Dependencies
To uninstall libmd4c0
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libmd4c0
Remove libmd4c0 Configurations and Data
To remove libmd4c0
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libmd4c0
Remove libmd4c0 configuration, data, and all of its dependencies
We can use the following command to remove libmd4c0
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmd4c0
Dependencies
libmd4c0 have the following dependencies:
References
Summary
In this tutorial we learn how to install libmd4c0
package on Ubuntu using different package management tools: apt, apt-get and aptitude.