getafm: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/getafm - from package: psutils

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/getafm - from package: psutils

You may install the required package with command apt-get install {package}
Error in other languages:
getafm: bevel nie gevind nie
getafm: comandă negăsită
getafm: comando não encontrado
getafm: commande introuvable
getafm: command not found
getafm: käsku ei ole
getafm: không tìm thấy lệnh
getafm: komanda nerasta
getafm: Kommando nicht gefunden.
getafm: kommandot finns inte
getafm: komut yok
getafm: nie znaleziono polecenia
getafm: níor aimsíodh an t-ordú
getafm: no se encontró la orden
getafm: no s'ha trobat l'ordre
getafm: opdracht niet gevonden
getafm: parancs nem található
getafm: perintah tidak ditemukan
getafm: príkaz nenájdený
getafm: příkaz nenalezen
getafm: команда не найдена
getafm: командата не е открита
getafm: 命令找不到
getafm: コマンドが見つかりません