Fedora : apg: command not found

ERROR :
bash: apg: command not found
bash: /usr/bin/apg: No such file or directory

FIX:

Got the above error on my Fedora server. apg command is used to generate random password on your Linux server. Do the below steps to install apg package on your Fedora server. apg package is provided by apg package.

1. Log into your Fedora server as ‘root’ user

2. Install apg package using dnf command

# sudo dnf install apg

OR

#dnf install apg