How To Install mandoc on Fedora 36

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

Introduction

In this tutorial we learn how to install mandoc on Fedora 36.

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

Install mandoc on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove mandoc

mandoc Package Contents on Fedora 36

/usr/bin/apropos
/usr/bin/apropos.mandoc
/usr/bin/demandoc
/usr/bin/man
/usr/bin/man.mandoc
/usr/bin/mandoc
/usr/bin/soelim
/usr/bin/soelim.mandoc
/usr/bin/whatis
/usr/bin/whatis.mandoc
/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/92a5e072ad5cb9f14e564f950383f7c61cbe14
/usr/lib/.build-id/89
/usr/lib/.build-id/89/b9c9ca736638a4a863b3bfd9339eeb385d0de4
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/4d623818ffb355450e9d8a7ff7bd52c1024c4e
/usr/sbin/makewhatis
/usr/sbin/makewhatis.mandoc
/usr/share/licenses/mandoc
/usr/share/licenses/mandoc/LICENSE
/usr/share/man/man1/apropos.1.gz
/usr/share/man/man1/apropos.mandoc.1.gz
/usr/share/man/man1/demandoc.1.gz
/usr/share/man/man1/man.1.gz
/usr/share/man/man1/man.mandoc.1.gz
/usr/share/man/man1/mandoc.1.gz
/usr/share/man/man1/soelim.1.gz
/usr/share/man/man1/soelim.mandoc.1.gz
/usr/share/man/man1/whatis.1.gz
/usr/share/man/man1/whatis.mandoc.1.gz
/usr/share/man/man5/mandoc.conf.5.gz
/usr/share/man/man5/mandoc.db.5.gz
/usr/share/man/man7/eqn.7.gz
/usr/share/man/man7/eqn.mandoc.7.gz
/usr/share/man/man7/man.7.gz
/usr/share/man/man7/man.mandoc.7.gz
/usr/share/man/man7/mandoc_char.7.gz
/usr/share/man/man7/mdoc.7.gz
/usr/share/man/man7/roff.7.gz
/usr/share/man/man7/roff.mandoc.7.gz
/usr/share/man/man7/tbl.7.gz
/usr/share/man/man7/tbl.mandoc.7.gz
/usr/share/man/man8/makewhatis.8.gz
/usr/share/man/man8/makewhatis.mandoc.8.gz

References

Summary

In this tutorial we learn how to install mandoc on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).