Fedora : apg: command not found

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


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


#dnf install apg