dpkg-query: 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/dpkg-query - from package: dpkg

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

On Debian possible default full paths are:

/usr/bin/dpkg-query - from package: dpkg

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