How To Install groff on CentOS 7

In this tutorial we learn how to install groff on CentOS 7. groff is A document formatting system

Introduction

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

What is groff

Groff is a document formatting system. Groff takes standard text and formatting commands as input and produces formatted output. The created documents can be shown on a display or printed on a printer. Groff’s formatting commands allow you to specify font type and size, bold type, italic type, the number and size of columns on a page, and more. Groff can also be used to format man pages. If you are going to use groff with the X Window System, you will also need to install the groff-x11 package.

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

Install groff on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install groff

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

sudo dnf -y install groff

How To Uninstall groff on CentOS 7

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

sudo dnf remove groff

References

Summary

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