How To Install libmandoc-devel on CentOS 7

In this tutorial we learn how to install libmandoc-devel on CentOS 7. libmandoc-devel is Development libraries and headers for libmandoc

Introduction

In this tutorial we learn how to install libmandoc-devel on CentOS 7.

What is libmandoc-devel

The mandoc library parses a UNIX manual into an abstract syntax tree (AST). UNIX manuals are composed of mdoc(7) or man(7), and may be mixed with roff(7), tbl(7), and eqn(7) invocations.

We can use yum or dnf to install libmandoc-devel on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libmandoc-devel.

Install libmandoc-devel on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install libmandoc-devel using yum by running the following command:

sudo yum -y install libmandoc-devel

Install libmandoc-devel on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install libmandoc-devel using dnf by running the following command:

sudo dnf -y install libmandoc-devel

How To Uninstall libmandoc-devel on CentOS 7

To uninstall only the libmandoc-devel package we can use the following command:

sudo dnf remove libmandoc-devel

References

Summary

In this tutorial we learn how to install libmandoc-devel on CentOS 7 using yum and dnf.