How To Install mandoc on Fedora 34

mandoc is A suite of tools for compiling mdoc and man

Introduction

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

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

Install mandoc on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install mandoc

Install mandoc on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 34

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

sudo dnf remove mandoc

mandoc Package Contents on Fedora 34

/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/22
/usr/lib/.build-id/22/46c51def32a145f9c4e29c03e8a9d940c33e38
/usr/lib/.build-id/35
/usr/lib/.build-id/35/0885a05e8c4d28935adfc4102a0562e444ae1e
/usr/lib/.build-id/89
/usr/lib/.build-id/89/1c48942a2657f0732bb4155c640ca9cc1d2425
/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 34 using yum and dnf.