pic command Fedora

How to install pic command on Fedora 31

pic command – compile pictures for troff or TeX

On Fedora server, pic 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
 

pic command usage

pic command usage: pic [ -nvCSU ] [ filename … ]
pic -t [ -cvzCSU ] [ filename … ]

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