How To Install mandoc on AlmaLinux 8

In this tutorial we learn how to install mandoc in AlmaLinux 8. mandoc is A suite of tools for compiling mdoc and man

Introduction

In this tutorial we learn how to install mandoc on AlmaLinux 8.

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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mandoc.

Install mandoc on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install mandoc

Install mandoc on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install mandoc

How To Uninstall mandoc on AlmaLinux 8

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 AlmaLinux 8 using yum and dnf.