Troff command Fedora
How to install troff command on Fedora 31
troff – the troff processor of the groff text formatting system. Troff 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
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
glibc
libstdc++
libgcc
3. Download groff-base package from fedoraproject.org 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 -ivh groff-base-1.22.3-20.fc31.x86_64.rpm
troff command usage
troff command usage: troff -abcivzCERU -wname -Wname -dcs -ffam -mname -nnum -olist -rcn -Tname -Fdir -Idir -Mdir [files…]
Run the command ‘man troff’ to check the command documentation.