groff command Fedora

How to install groff command on Fedora 31

groff command :- front-end for the groff document formatting system

On Fedora server, groff command is provided by groff-base package. Follow the below steps to install groff-base package on Fedora 31 server.

1. Log into Fedora server as ‘root’ user

2. Run the below command to install groff-base package on fedora server.

# dnf install groff-base

OR

# sudo dnf install groff-base
 

# dnf install groff-base
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
groff-base x86_64 1.22.3-20.fc31 fedora 1.0 M

Transaction Summary
===================================================================================================
Install 1 Package

Total download size: 1.0 M
Installed size: 4.0 M
Is this ok [y/N]: y

 

Install groff-base rpm on Fedora server

1. Log into Fedora server as ‘root’ user

2. Download and install the below dependencies before installing groff-base package

glibc
libstdc++
libgcc

3. Download groff-base package from fedoraproject.org website and install it using rpm command

# wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/31/Everything/x86_64/os/Packages/g/groff-base-1.22.3-20.fc31.x86_64.rpm

#rpm -vh groff-base-1.22.3-20.fc31.x86_64.rpm
 

groff command usage

groff command usage:

usage: groff [-abceghijklpstvzCEGNRSUVXZ] [-dcs] [-ffam] [-mname] [-nnum]
[-olist] [-rcn] [-wname] [-Darg] [-Fdir] [-Idir] [-Karg] [-Larg]
[-Mdir] [-Parg] [-Tdev] [-Wname] [files…]

-h print this message
-v print version number
-e preprocess with eqn
-g preprocess with grn
-j preprocess with chem
-k preprocess with preconv
-p preprocess with pic
-s preprocess with soelim
-t preprocess with tbl
-G preprocess with grap
-J preprocess with gideal
-R preprocess with refer
-a produce ASCII description of output
-b print backtraces with errors or warnings
-c disable color output
-dcs define a string c as s
-ffam use fam as the default font family
-i read standard input after named input files
-l spool the output
-mname read macros tmac.name
-nnum number first page n
-olist output only pages in list
-rcn define a number register c as n
-wname enable warning name
-z suppress formatted output
-C enable compatibility mode
-Darg use arg as default input encoding. Implies -k
-E inhibit all errors
-Fdir search dir for device directories
-Idir search dir for soelim, troff, and grops. Implies -s
-Karg use arg as input encoding. Implies -k
-Larg pass arg to the spooler
-Mdir search dir for macro files
-N don’t allow newlines within eqn delimiters
-Parg pass arg to the postprocessor
-S enable safer mode (the default)
-Tdev use device dev
-U enable unsafe mode
-V print commands on stdout instead of running them
-Wname inhibit warning name
-X use X11 previewer rather than usual postprocessor
-Z don’t postprocess

Run the command ‘man groff’ to check the command documentation.

# man groff