How To Install libmandoc-devel on Rocky Linux 8

In this tutorial we learn how to install libmandoc-devel on Rocky Linux 8. libmandoc-devel is Development libraries and headers for libmandoc

Introduction

In this tutorial we learn how to install libmandoc-devel on Rocky Linux 8.

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

Install libmandoc-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libmandoc-devel

Install libmandoc-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libmandoc-devel

How To Uninstall libmandoc-devel on Rocky Linux 8

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

sudo dnf remove libmandoc-devel

libmandoc-devel Package Contents on Rocky Linux 8

/usr/include/eqn.h
/usr/include/man.h
/usr/include/mandoc.h
/usr/include/mandoc_aux.h
/usr/include/mandoc_parse.h
/usr/include/mdoc.h
/usr/include/roff.h
/usr/include/tbl.h
/usr/lib64/libmandoc.a
/usr/share/licenses/libmandoc-devel
/usr/share/licenses/libmandoc-devel/LICENSE
/usr/share/man/man3/mandoc.3.gz
/usr/share/man/man3/mandoc_escape.3.gz
/usr/share/man/man3/mandoc_malloc.3.gz
/usr/share/man/man3/mansearch.3.gz
/usr/share/man/man3/mchars_alloc.3.gz
/usr/share/man/man3/tbl.3.gz

References

Summary

In this tutorial we learn how to install libmandoc-devel on Rocky Linux 8 using yum and dnf.