When your Arch Linux AUR package manager yaourt gives this error: "package-query: error while loading shared libraries: libalpm.so.13: cannot open shared object file: No such file or directory". Or just rebuild package-query manually and everything should be fine again. There is no real need to prune yaourt. You can find all the AUR helpers from Arch Linux AUR helpers wiki page.
Source code viewer
sudo pacman-db-upgrade yaourt -R package-query yaourt curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz tar zxvf package-query.tar.gz cd package-query makepkg -si cd .. curl -O https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz tar zxvf yaourt.tar.gz cd yaourt makepkg -si # Delete downloaded archives and folders.Programming Language: Bash