rpmdev-diff: 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/rpmdev-diff - from package: rpmdevtools

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