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

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