How To Install mandoc on CentOS 7

In this tutorial we learn how to install mandoc on CentOS 7. mandoc is A suite of tools for compiling mdoc and man

Introduction

In this tutorial we learn how to install mandoc on CentOS 7.

What is mandoc

mandoc is a suite of tools compiling mdoc, the roff macro language of choice for BSD manual pages, and man, the predominant historical language for UNIX manuals. It is small, ISO C, ISC-licensed, and quite fast. The main component of the toolset is the mandoc utility program, based on the libmandoc validating compiler, to format output for UTF-8 and ASCII UNIX terminals, HTML 5, PostScript, and PDF.

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

Install mandoc on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install mandoc using yum by running the following command:

sudo yum -y install mandoc

Install mandoc 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 mandoc using dnf by running the following command:

sudo dnf -y install mandoc

How To Uninstall mandoc on CentOS 7

To uninstall only the mandoc package we can use the following command:

sudo dnf remove mandoc

References

Summary

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