archlinux remove unused packages code example Example: how to remove unused packages in arch sudo pacman -R $(pacman -Qtdq)