fileinfo: 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

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 Debian possible default full paths are:

/usr/bin/fileinfo - from package: leptonica-progs
/usr/bin/fileinfo - from package: topp

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