remove orphan packages arch linux code example Example: remove orphan packages arch linux sudo pacman -R $(pacman -Qtdq)