find out how a package is installed arch linux code example Example: pacman remove unused dependencies sudo pacman -Rsn $(pacman -Qdtq)