xdg-mime: 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/xdg-mime - from package: xdg-utils

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

On Debian possible default full paths are:

/usr/bin/xdg-mime - from package: xdg-utils

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