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