cmark-gfm command not found

In this troubleshooting guide we learn how to fix cmark-gfm command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

cmark-gfm: command not found

or when using sudo you get the following error message

sudo: cmark-gfm: command not found

Solutions to cmark-gfm: command not found

How To Fix cmark-gfm: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cmark-gfm is provided by cmark-gfm package.

cmark-gfm is:

cmark-gfm is the GitHub flavor of the cmark C reference implementation of CommonMark, a rationalized version of Markdown syntax with a spec. This package provides a command-line program (cmark-gfm) for parsing and rendering CommonMark documents.

This GitHub flavored version has extensions for org-mode style tables, auto-linking, and more.

To fix this problem, we can install more using the command below.

sudo apt-get -y install cmark-gfm

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install cmark-gfm.

sudo apt -y install cmark-gfm

Or if you have aptitude installed you can use the following command.

sudo aptitude install cmark-gfm

Summary

In this tutorial we learn how to fix cmark-gfm command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.