Use “yay” instead of yaourt! yaourt is outdated. (https://github.com/Jguer/yay)
pacman -Rsn $(pacman -Qdtq)
pacman -U .pkg.tar.gz or .pkg.tar.xz