How To Install groff on CentOS 8

groff is A document formatting system

Introduction

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

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

Install groff on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install groff

Install groff on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install groff

How To Uninstall groff on CentOS 8

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

sudo dnf remove groff

groff Package Contents on CentOS 8

/usr/bin/addftinfo
/usr/bin/eqn2graph
/usr/bin/gdiffmk
/usr/bin/gindxbib
/usr/bin/glookbib
/usr/bin/grap2graph
/usr/bin/grefer
/usr/bin/grn
/usr/bin/grodvi
/usr/bin/grolbp
/usr/bin/grolj4
/usr/bin/hpftodit
/usr/bin/indxbib
/usr/bin/lkbib
/usr/bin/lookbib
/usr/bin/pdfroff
/usr/bin/pfbtops
/usr/bin/pic2graph
/usr/bin/refer
/usr/bin/tfmtodit
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/3be455104f50e3309052bb58367d0ac135dcb2
/usr/lib/.build-id/18
/usr/lib/.build-id/18/354abd834fb21770cbcdf59449126f8c00cab8
/usr/lib/.build-id/24
/usr/lib/.build-id/24/46474dcd7d89732cae5c9d76cb943360257986
/usr/lib/.build-id/36
/usr/lib/.build-id/36/ec9472286bd9b0f4e67d11df47f10c545880f5
/usr/lib/.build-id/50
/usr/lib/.build-id/50/844139b6ed6e56ae2d16ab0b6305eb544baf6c
/usr/lib/.build-id/68
/usr/lib/.build-id/68/b71ec54cc63c5f0a5ce3fb7b365e8b779dc301
/usr/lib/.build-id/90
/usr/lib/.build-id/90/4523b22fd7def0c640f4dc08046ae8c8c8ec1a
/usr/lib/.build-id/91
/usr/lib/.build-id/91/5ae9757c7d61fe2cea9f8f104a68d62f1dae5c
/usr/lib/.build-id/96
/usr/lib/.build-id/96/2fbd917fcc94036fa192bf9da4b54769351f55
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/8e6e02027fa1e633b200e241d8ae2640e526db
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/ec8caae0de8aa67efe917bd3d774792f5dc788
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/c7c33f706ccf265d0fb8539e347ca36741c33a
/usr/lib64/groff/groff_opts_no_arg.txt
/usr/lib64/groff/groff_opts_with_arg.txt
/usr/share/groff/1.22.3/font/devdvi
/usr/share/groff/1.22.3/font/devdvi/CW
/usr/share/groff/1.22.3/font/devdvi/CWEC
/usr/share/groff/1.22.3/font/devdvi/CWI
/usr/share/groff/1.22.3/font/devdvi/CWIEC
/usr/share/groff/1.22.3/font/devdvi/CWITC
/usr/share/groff/1.22.3/font/devdvi/CWTC
/usr/share/groff/1.22.3/font/devdvi/DESC
/usr/share/groff/1.22.3/font/devdvi/EX
/usr/share/groff/1.22.3/font/devdvi/HB
/usr/share/groff/1.22.3/font/devdvi/HBEC
/usr/share/groff/1.22.3/font/devdvi/HBI
/usr/share/groff/1.22.3/font/devdvi/HBIEC
/usr/share/groff/1.22.3/font/devdvi/HBITC
/usr/share/groff/1.22.3/font/devdvi/HBTC
/usr/share/groff/1.22.3/font/devdvi/HI
/usr/share/groff/1.22.3/font/devdvi/HIEC
/usr/share/groff/1.22.3/font/devdvi/HITC
/usr/share/groff/1.22.3/font/devdvi/HR
/usr/share/groff/1.22.3/font/devdvi/HREC
/usr/share/groff/1.22.3/font/devdvi/HRTC
/usr/share/groff/1.22.3/font/devdvi/MI
/usr/share/groff/1.22.3/font/devdvi/S
/usr/share/groff/1.22.3/font/devdvi/SA
/usr/share/groff/1.22.3/font/devdvi/SB
/usr/share/groff/1.22.3/font/devdvi/SC
/usr/share/groff/1.22.3/font/devdvi/TB
/usr/share/groff/1.22.3/font/devdvi/TBEC
/usr/share/groff/1.22.3/font/devdvi/TBI
/usr/share/groff/1.22.3/font/devdvi/TBIEC
/usr/share/groff/1.22.3/font/devdvi/TBITC
/usr/share/groff/1.22.3/font/devdvi/TBTC
/usr/share/groff/1.22.3/font/devdvi/TI
/usr/share/groff/1.22.3/font/devdvi/TIEC
/usr/share/groff/1.22.3/font/devdvi/TITC
/usr/share/groff/1.22.3/font/devdvi/TR
/usr/share/groff/1.22.3/font/devdvi/TREC
/usr/share/groff/1.22.3/font/devdvi/TRTC
/usr/share/groff/1.22.3/font/devdvi/generate
/usr/share/groff/1.22.3/font/devdvi/generate/CompileFonts
/usr/share/groff/1.22.3/font/devdvi/generate/Makefile
/usr/share/groff/1.22.3/font/devdvi/generate/ec.map
/usr/share/groff/1.22.3/font/devdvi/generate/msam.map
/usr/share/groff/1.22.3/font/devdvi/generate/msbm.map
/usr/share/groff/1.22.3/font/devdvi/generate/tc.map
/usr/share/groff/1.22.3/font/devdvi/generate/texb.map
/usr/share/groff/1.22.3/font/devdvi/generate/texex.map
/usr/share/groff/1.22.3/font/devdvi/generate/texi.map
/usr/share/groff/1.22.3/font/devdvi/generate/texmi.map
/usr/share/groff/1.22.3/font/devdvi/generate/texr.map
/usr/share/groff/1.22.3/font/devdvi/generate/texsy.map
/usr/share/groff/1.22.3/font/devdvi/generate/textex.map
/usr/share/groff/1.22.3/font/devdvi/generate/textt.map
/usr/share/groff/1.22.3/font/devlbp
/usr/share/groff/1.22.3/font/devlbp/CB
/usr/share/groff/1.22.3/font/devlbp/CI
/usr/share/groff/1.22.3/font/devlbp/CR
/usr/share/groff/1.22.3/font/devlbp/DESC
/usr/share/groff/1.22.3/font/devlbp/EB
/usr/share/groff/1.22.3/font/devlbp/EI
/usr/share/groff/1.22.3/font/devlbp/ER
/usr/share/groff/1.22.3/font/devlbp/HB
/usr/share/groff/1.22.3/font/devlbp/HBI
/usr/share/groff/1.22.3/font/devlbp/HI
/usr/share/groff/1.22.3/font/devlbp/HNB
/usr/share/groff/1.22.3/font/devlbp/HNBI
/usr/share/groff/1.22.3/font/devlbp/HNI
/usr/share/groff/1.22.3/font/devlbp/HNR
/usr/share/groff/1.22.3/font/devlbp/HR
/usr/share/groff/1.22.3/font/devlbp/TB
/usr/share/groff/1.22.3/font/devlbp/TBI
/usr/share/groff/1.22.3/font/devlbp/TI
/usr/share/groff/1.22.3/font/devlbp/TR
/usr/share/groff/1.22.3/font/devlj4
/usr/share/groff/1.22.3/font/devlj4/AB
/usr/share/groff/1.22.3/font/devlj4/ABI
/usr/share/groff/1.22.3/font/devlj4/AI
/usr/share/groff/1.22.3/font/devlj4/ALBB
/usr/share/groff/1.22.3/font/devlj4/ALBR
/usr/share/groff/1.22.3/font/devlj4/AOB
/usr/share/groff/1.22.3/font/devlj4/AOI
/usr/share/groff/1.22.3/font/devlj4/AOR
/usr/share/groff/1.22.3/font/devlj4/AR
/usr/share/groff/1.22.3/font/devlj4/CB
/usr/share/groff/1.22.3/font/devlj4/CBI
/usr/share/groff/1.22.3/font/devlj4/CI
/usr/share/groff/1.22.3/font/devlj4/CLARENDON
/usr/share/groff/1.22.3/font/devlj4/CORONET
/usr/share/groff/1.22.3/font/devlj4/CR
/usr/share/groff/1.22.3/font/devlj4/DESC
/usr/share/groff/1.22.3/font/devlj4/GB
/usr/share/groff/1.22.3/font/devlj4/GBI
/usr/share/groff/1.22.3/font/devlj4/GI
/usr/share/groff/1.22.3/font/devlj4/GR
/usr/share/groff/1.22.3/font/devlj4/LGB
/usr/share/groff/1.22.3/font/devlj4/LGI
/usr/share/groff/1.22.3/font/devlj4/LGR
/usr/share/groff/1.22.3/font/devlj4/MARIGOLD
/usr/share/groff/1.22.3/font/devlj4/OB
/usr/share/groff/1.22.3/font/devlj4/OBI
/usr/share/groff/1.22.3/font/devlj4/OI
/usr/share/groff/1.22.3/font/devlj4/OR
/usr/share/groff/1.22.3/font/devlj4/S
/usr/share/groff/1.22.3/font/devlj4/SYMBOL
/usr/share/groff/1.22.3/font/devlj4/TB
/usr/share/groff/1.22.3/font/devlj4/TBI
/usr/share/groff/1.22.3/font/devlj4/TI
/usr/share/groff/1.22.3/font/devlj4/TNRB
/usr/share/groff/1.22.3/font/devlj4/TNRBI
/usr/share/groff/1.22.3/font/devlj4/TNRI
/usr/share/groff/1.22.3/font/devlj4/TNRR
/usr/share/groff/1.22.3/font/devlj4/TR
/usr/share/groff/1.22.3/font/devlj4/UB
/usr/share/groff/1.22.3/font/devlj4/UBI
/usr/share/groff/1.22.3/font/devlj4/UCB
/usr/share/groff/1.22.3/font/devlj4/UCBI
/usr/share/groff/1.22.3/font/devlj4/UCI
/usr/share/groff/1.22.3/font/devlj4/UCR
/usr/share/groff/1.22.3/font/devlj4/UI
/usr/share/groff/1.22.3/font/devlj4/UR
/usr/share/groff/1.22.3/font/devlj4/WINGDINGS
/usr/share/groff/1.22.3/font/devlj4/generate
/usr/share/groff/1.22.3/font/devlj4/generate/Makefile
/usr/share/groff/1.22.3/font/devlj4/generate/special.awk
/usr/share/groff/1.22.3/font/devlj4/generate/special.map
/usr/share/groff/1.22.3/font/devlj4/generate/symbol.map
/usr/share/groff/1.22.3/font/devlj4/generate/text.map
/usr/share/groff/1.22.3/font/devlj4/generate/wingdings.map
/usr/share/groff/1.22.3/oldfont
/usr/share/groff/1.22.3/oldfont/devps
/usr/share/groff/1.22.3/oldfont/devps/CB
/usr/share/groff/1.22.3/oldfont/devps/CBI
/usr/share/groff/1.22.3/oldfont/devps/CI
/usr/share/groff/1.22.3/oldfont/devps/CR
/usr/share/groff/1.22.3/oldfont/devps/HB
/usr/share/groff/1.22.3/oldfont/devps/HBI
/usr/share/groff/1.22.3/oldfont/devps/HI
/usr/share/groff/1.22.3/oldfont/devps/HNB
/usr/share/groff/1.22.3/oldfont/devps/HNBI
/usr/share/groff/1.22.3/oldfont/devps/HNI
/usr/share/groff/1.22.3/oldfont/devps/HNR
/usr/share/groff/1.22.3/oldfont/devps/HR
/usr/share/groff/1.22.3/oldfont/devps/NB
/usr/share/groff/1.22.3/oldfont/devps/NBI
/usr/share/groff/1.22.3/oldfont/devps/NI
/usr/share/groff/1.22.3/oldfont/devps/NR
/usr/share/groff/1.22.3/oldfont/devps/PB
/usr/share/groff/1.22.3/oldfont/devps/PBI
/usr/share/groff/1.22.3/oldfont/devps/PI
/usr/share/groff/1.22.3/oldfont/devps/PR
/usr/share/groff/1.22.3/oldfont/devps/S
/usr/share/groff/1.22.3/oldfont/devps/SS
/usr/share/groff/1.22.3/oldfont/devps/TB
/usr/share/groff/1.22.3/oldfont/devps/TBI
/usr/share/groff/1.22.3/oldfont/devps/TI
/usr/share/groff/1.22.3/oldfont/devps/TR
/usr/share/groff/1.22.3/oldfont/devps/symbol.afm
/usr/share/groff/1.22.3/oldfont/devps/symbolsl.afm
/usr/share/groff/1.22.3/oldfont/devps/zapfdr.afm
/usr/share/groff/1.22.3/oldfont/devps/zapfdr.ps
/usr/share/groff/1.22.3/pic
/usr/share/groff/1.22.3/pic/chem.pic
/usr/share/groff/1.22.3/tmac/62bit.tmac
/usr/share/groff/1.22.3/tmac/a4.tmac
/usr/share/groff/1.22.3/tmac/dvi.tmac
/usr/share/groff/1.22.3/tmac/e.tmac
/usr/share/groff/1.22.3/tmac/ec.tmac
/usr/share/groff/1.22.3/tmac/hdmisc.tmac
/usr/share/groff/1.22.3/tmac/hdtbl.tmac
/usr/share/groff/1.22.3/tmac/lbp.tmac
/usr/share/groff/1.22.3/tmac/lj4.tmac
/usr/share/groff/1.22.3/tmac/m.tmac
/usr/share/groff/1.22.3/tmac/me.tmac
/usr/share/groff/1.22.3/tmac/mm
/usr/share/groff/1.22.3/tmac/mm.tmac
/usr/share/groff/1.22.3/tmac/mm/0.MT
/usr/share/groff/1.22.3/tmac/mm/4.MT
/usr/share/groff/1.22.3/tmac/mm/5.MT
/usr/share/groff/1.22.3/tmac/mm/locale
/usr/share/groff/1.22.3/tmac/mm/ms.cov
/usr/share/groff/1.22.3/tmac/mm/se_locale
/usr/share/groff/1.22.3/tmac/mm/se_ms.cov
/usr/share/groff/1.22.3/tmac/mmse.tmac
/usr/share/groff/1.22.3/tmac/mom.tmac
/usr/share/groff/1.22.3/tmac/ms.tmac
/usr/share/groff/1.22.3/tmac/mse.tmac
/usr/share/groff/1.22.3/tmac/om.tmac
/usr/share/groff/1.22.3/tmac/pdfmark.tmac
/usr/share/groff/1.22.3/tmac/refer-me.tmac
/usr/share/groff/1.22.3/tmac/refer-mm.tmac
/usr/share/groff/1.22.3/tmac/refer-ms.tmac
/usr/share/groff/1.22.3/tmac/refer.tmac
/usr/share/groff/1.22.3/tmac/s.tmac
/usr/share/groff/1.22.3/tmac/spdf.tmac
/usr/share/groff/1.22.3/tmac/trace.tmac
/usr/share/info/groff.info-1.gz
/usr/share/info/groff.info-2.gz
/usr/share/info/groff.info.gz
/usr/share/man/man1/addftinfo.1.gz
/usr/share/man/man1/eqn2graph.1.gz
/usr/share/man/man1/gdiffmk.1.gz
/usr/share/man/man1/gindxbib.1.gz
/usr/share/man/man1/glookbib.1.gz
/usr/share/man/man1/grap2graph.1.gz
/usr/share/man/man1/grefer.1.gz
/usr/share/man/man1/grn.1.gz
/usr/share/man/man1/grodvi.1.gz
/usr/share/man/man1/grohtml.1.gz
/usr/share/man/man1/grolbp.1.gz
/usr/share/man/man1/grolj4.1.gz
/usr/share/man/man1/hpftodit.1.gz
/usr/share/man/man1/indxbib.1.gz
/usr/share/man/man1/lkbib.1.gz
/usr/share/man/man1/lookbib.1.gz
/usr/share/man/man1/pdfroff.1.gz
/usr/share/man/man1/pfbtops.1.gz
/usr/share/man/man1/pic2graph.1.gz
/usr/share/man/man1/refer.1.gz
/usr/share/man/man1/tfmtodit.1.gz
/usr/share/man/man5/groff_font.5.gz
/usr/share/man/man5/groff_out.5.gz
/usr/share/man/man5/groff_tmac.5.gz
/usr/share/man/man5/lj4_font.5.gz
/usr/share/man/man7/ditroff.7.gz
/usr/share/man/man7/groff.7.gz
/usr/share/man/man7/groff_char.7.gz
/usr/share/man/man7/groff_diff.7.gz
/usr/share/man/man7/groff_filenames.7.gz
/usr/share/man/man7/groff_hdtbl.7.gz
/usr/share/man/man7/groff_man.7.gz
/usr/share/man/man7/groff_mdoc.7.gz
/usr/share/man/man7/groff_me.7.gz
/usr/share/man/man7/groff_mm.7.gz
/usr/share/man/man7/groff_mmse.7.gz
/usr/share/man/man7/groff_mom.7.gz
/usr/share/man/man7/groff_ms.7.gz
/usr/share/man/man7/groff_trace.7.gz
/usr/share/man/man7/groff_www.7.gz
/usr/share/man/man7/roff.7.gz

References

Summary

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